環境
MacOS Big Sur(v11.4)
xcode 12.4
Unity2019.2.12f1
事象
UnityでiOSビルド時に下記エラーに遭遇。
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
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
Firebase/Analytics (= 6.24.0) was resolved to 6.24.0, which depends on
Firebase/Core (= 6.24.0) was resolved to 6.24.0, which depends on
Firebase/CoreOnly (= 6.24.0) was resolved to 6.24.0, which depends on
FirebaseCore (= 6.7.0)
あれ、CocoaPodsが動かなくなったかなと思ってみたら、
MacOSを先程 Catalinaから Big Surにアップデートしたタイミングで、
CocoaPodsが動かなくなっていました。
改善した方法
CocoaPodsのインストールや、インストールし直しはここが大変参考になりました。🙇
https://qiita.com/noprops/items/f997a438fabb64c15f10
次に、
で、MacOSアップグレードしたばかりだと、Unityで実行ボタンおすとこのようなエラーがでる場合は、
事前に許可しておく。
その後、iOSビルドしたら、無事エラーはなくっていました!