I obtained this error each time I attempt to construct for iOS platform on Unity:
iOS framework addition failed on account of a CocoaPods set up failure. It will will seemingly lead to an non-functional Xcode challenge.
After the failure, "pod repo replace" was executed and succeeded. "pod set up" was then tried once more, and nonetheless failed. This can be on account of a damaged CocoaPods set up. See: https://guides.cocoapods.org/utilizing/troubleshooting.html for potential options.
pod set up output:
Analyzing dependencies
[!] CocoaPods couldn't discover suitable variations for pod "FirebaseCore":
In Podfile:
Firebase/Auth (= 11.4.2) was resolved to 11.4.2, which depends upon
Firebase/CoreOnly (= 11.4.2) was resolved to 11.4.2, which depends upon
FirebaseCore (= 11.4.2)
Firebase/Auth (= 11.4.2) was resolved to 11.4.2, which depends upon
FirebaseAuth (~> 11.4.0) was resolved to 11.4.0, which depends upon
FirebaseCore (~> 11.4)
Firebase/Core (= 11.4.2) was resolved to 11.4.2, which depends upon
FirebaseAnalytics (~> 11.4.0) was resolved to 11.4.0, which depends upon
FirebaseCore (~> 11.0)
Firebase/Core (= 11.4.2) was resolved to 11.4.2, which depends upon
FirebaseAnalytics (~> 11.4.0) was resolved to 11.4.0, which depends upon
FirebaseInstallations (~> 11.0) was resolved to 11.5.0, which depends upon
FirebaseCore (= 11.5)
CocoaPods couldn't discover suitable variations for pod "GTMSessionFetcher/Core":
In Podfile:
Firebase/Auth (= 11.4.2) was resolved to 11.4.2, which depends upon
FirebaseAuth (~> 11.4.0) was resolved to 11.4.0, which depends upon
GTMSessionFetcher/Core (< 5.0, >= 3.4)
GoogleSignIn (~> 6.0.2) was resolved to six.0.2, which depends upon
GTMAppAuth (~> 1.0) was resolved to 1.0.0, which depends upon
GTMSessionFetcher (~> 1.1) was resolved to 1.1.0, which depends upon
GTMSessionFetcher/Full (= 1.1.0) was resolved to 1.1.0, which depends upon
GTMSessionFetcher/Core (= 1.1.0)
GoogleSignIn (~> 6.0.2) was resolved to six.0.2, which depends upon
GTMSessionFetcher/Core (< 4.0, >= 2.1)
pod repo replace output:
Updating spec repo `trunk`
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at /Customers/amaurice/Paperwork/GitHub/unity-jar-resolver/supply/VersionHandlerImpl/src/Logger.cs:136)
Google.IOSResolver:Log (string,bool,Google.LogLevel) (at /Customers/amaurice/Paperwork/GitHub/unity-jar-resolver/supply/IOSResolver/src/IOSResolver.cs:1247)
Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string) (at /Customers/amaurice/Paperwork/GitHub/unity-jar-resolver/supply/IOSResolver/src/IOSResolver.cs:2799)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Customers/bokken/construct/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
One other downside is, once I examine the Firebase model on my unity, it says I am utilizing Firebase Realtime Database: [12.4.1], Firebase Authentication: [12.4.1], Exterior Dependency Supervisor: [1.2.183]
however on my podfile it says I am utilizing model 11.4.2 for the Firebase bundle:
supply 'https://cdn.cocoapods.org/'
platform :ios, '13.0'
goal 'UnityFramework' do
pod 'Firebase/Auth', '11.4.2'
pod 'Firebase/Core', '11.4.2'
pod 'Firebase/Database', '11.4.2'
pod 'GoogleSignIn', '~> 6.0.2'
finish
goal 'Unity-iPhone' do
finish
use_frameworks! :linkage => :static
What I’ve tried: downgrade the cocoapods to v1.10.2, disable Use Shell to Execute Cocoapod Device, nonetheless get the identical errors.
If I simply attempt to construct it from the Unity-iPhone.xcodeproj, I’ll get googlesignin/gidsignin.h file not discovered.
For now I simply attempt to use the most recent model cocoapods.
Thanks