- Home /
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.
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
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.
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
yes, I have my OS, Xcode, firebase, googleVR, and unity all up to date
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)
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
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/