• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sir-Gatlin · Jul 20, 2017 at 06:18 PM · iosbuild-errorgooglevirtualreality

Build Failed due to failure to install Cocoapods?

So I am making an App that is using Google Vr and Google Firebase. both work great on Android, but now I am trying to do an iOS build I am getting crazy errors that I cant seem to find any resources about. When I go to build, it gets all the way to "Opening in Xcode" then it dies and gives me 3 errors

 iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.
 
 After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken Cocoapods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
 
 pod install output:
 
 Analyzing dependencies
 [!] Unable to satisfy the following requirements:
 
 - `GVRSDK (~> 1.60)` required by `Podfile`
 - `GVRSDK (= 1.60.0)` required by `Podfile.lock`
 
 Specs satisfying the `GVRSDK (~> 1.60), GVRSDK (= 1.60.0)` dependency were found, but they required a higher minimum deployment target.
 
 
 
 
 
 pod repo update output:
 
 Updating spec repo `master`
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master fetch origin --progress
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
   master
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master reset --hard origin/master
   HEAD is now at a47bc1fa8f7 [Add] SGAdvertScrollView 1.1.9
 
 CocoaPods 1.3.0.beta.3 is available.
 To update use: `gem install cocoapods --pre`
 [!] This is a test version we'd love you to try.
 
 For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.3.0.beta.3
 
 
 
 
 UnityEngine.Debug:LogError(Object)
 Google.IOSResolver:Log(String, Boolean, LogLevel)
 Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String)
 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


 Error building Player: iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.
 
 After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken Cocoapods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.
 
 pod install output:
 
 Analyzing dependencies
 [!] Unable to satisfy the following requirements:
 
 - `GVRSDK (~> 1.60)` required by `Podfile`
 - `GVRSDK (= 1.60.0)` required by `Podfile.lock`
 
 Specs satisfying the `GVRSDK (~> 1.60), GVRSDK (= 1.60.0)` dependency were found, but they required a higher minimum deployment target.
 
 

========

 pod repo update output:
 
 Updating spec repo `master`
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master fetch origin --progress
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
   master
   $ /usr/bin/git -C /Users/Jhalalay/.cocoapods/repos/master reset --hard origin/master
   HEAD is now at a47bc1fa8f7 [Add] SGAdvertScrollView 1.1.9
 
 CocoaPods 1.3.0.beta.3 is available.
 To update use: `gem install cocoapods --pre`
 [!] This is a test version we'd love you to try.
 
 For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.3.0.beta.3


 UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:162 
   at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83 
 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


I have tried updating Cocoapods, installing beta. deleting it from the project and cant seem to find a solution. Any help would be appreciated, this ONE thing is holding me past my deadline.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Sir-Gatlin · Jul 21, 2017 at 07:32 PM

SO looking at line 13 in the first error I got, I tried playing with the Target minimum iOS Version. I tried changing it in Xcode but that was a bad idea. Changed it in Unity and the issue went away. I am getting other issues with the build ATM and don't think they have anything to do with this. So recap when you get this error. in Unity under player Setting, change Target minimum iOS Version to like 8.0 and it will solve the issue

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by ashiokai · Jul 21, 2020 at 06:55 PM

hey I fixed my cocoa pods installation issue with this.

https://medium.com/@pfxstudio21/cocoapods-error-error-installing-cocoapods-396ef7a1393d

it should work for you.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lenvanthis012 · Apr 21, 2021 at 06:23 PM 0
Share

This worked for me! Thanks.

avatar image
0

Answer by Soniya_unity · Jul 21, 2017 at 10:00 AM

make sure you have latest Xcode with no beta version, and make sure you added all related frameworks

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sir-Gatlin · Jul 21, 2017 at 07:29 PM 0
Share

yes, I have my OS, Xcode, firebase, googleVR, and unity all up to date

avatar image
0

Answer by colvengames · Apr 13, 2018 at 08:59 PM

Did you solve this? i have the same problem

Error building Player: iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken Cocoapods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies [!] Unable to find a specification for Google-Mobile-Ads-SDK (~> 7.0)

,Do you solved this? i have the same issue

Error building Player: iOS framework addition failed due to a Cocoapods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken Cocoapods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies [!] Unable to find a specification for Google-Mobile-Ads-SDK (~> 7.0)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sir-Gatlin · Apr 14, 2018 at 05:41 PM 0
Share

usually its idea is to not ask questions as an answer to a question, I would suggest checking the target $$anonymous$$imum ios. and then reinstall all your plugins, like google-mobile-ads, or any other services you get. I noticed I would get it a lot when installing a google service, like firebase or cardboard, and then run that project on a different computer. So yeah make sure everything is up to date, update your plug ins, and check your target $$anonymous$$imum ios. If the problem still persists please dump your errors in full, as there are a lot of times hidden clues that will point us to the right direction

avatar image
0

Answer by webrosdeveloper4 · Apr 27 at 11:07 PM

Just uninstall and install your cocoapods setup or update your cocoapod in your mac , else downgrade the cocoapods version . This forum will help you guys. https://forum.unity.com/threads/cocoapods-installation-failure-when-building-for-ios.1167700/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

99 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

VR assets to Cardboard (Magnet instead of click) 1 Answer

Black patches in skybox when VR mode is enabled 0 Answers

VR navigation like google maps 0 Answers

know when GVR raycaster is looking at nothing 1 Answer

Unable to find libaudiopluginvrunity 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges