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.

hey I fixed my cocoa pods installation issue with this.

it should work for you.

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

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

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: CocoaPods Guides - Troubleshooting 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: CocoaPods Guides - Troubleshooting for potential solutions.

pod install output:

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

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/