概要
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 [!] `FirebaseABTesting` requires CocoaPods version `>= 1.12.0`, which is not satisfied by your current version, `1.11.3`. Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 ... pod repo update output: Updating spec repo `cocoapods` Updating spec repo `trunk` CocoaPods 1.15.0 is available. To update use: `sudo gem install cocoapods` For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.15.0 Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 ... UnityEngine.Debug:LogError (object) Google.Logger:Log (string,Google.LogLevel) (at Z:/tmp/tmp.K9OFax9s5i/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136) Google.IOSResolver:Log (string,bool,Google.LogLevel) (at Z:/tmp/tmp.UswgKsehZ1/third_party/unity/unity_jar_resolver/source/IOSResolver/src/IOSResolver.cs:1243) Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string) (at Z:/tmp/tmp.UswgKsehZ1/third_party/unity/unity_jar_<message truncated>
Firebase を導入している Unity プロジェクトで iOS ビルドしたら
上記のエラーが発生してビルドに失敗するようになった
Xcode 15.2 をインストールしてからか、
Firebase のパッチバージョンをアップデートしてからエラーが出るようになった
CocoaPods 周りに問題があるようだったので
gem install cocoapods
ターミナルで上記のコマンドを実行したら
baba-s@babashoutamacbookpro ~ % gem install cocoapods Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Fetching cocoapods-1.15.2.gem Fetching cocoapods-core-1.15.2.gem ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
上記のエラーが出た
sudo gem install cocoapods
sudo
を付けてコマンドを実行したら
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Ignoring json-1.8.6 because its extensions are not built. Try: gem pristine json --version 1.8.6 Successfully installed cocoapods-core-1.15.2 Successfully installed cocoapods-1.15.2 Parsing documentation for cocoapods-core-1.15.2 Installing ri documentation for cocoapods-core-1.15.2 Parsing documentation for cocoapods-1.15.2 Installing ri documentation for cocoapods-1.15.2 Done installing documentation for cocoapods-core, cocoapods after 2 seconds 2 gems installed
成功した
その後に Unity プロジェクトで iOS ビルドしたら正常に完了した