🚅

fastlaneでiOSビルド時に、CocoaPodsエラー

2024/10/07に公開

AndroidStudioからのシミュレータ起動はOKだが、fastlaneビルド(ローカルMacで実行)だとエラーで処理が止まる。(Cocoapods関連のエラー

エラー内容

Warning: CocoaPods is installed but broken. Skipping pod install.
  You appear to have CocoaPods installed but it is not working.
  This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
  This can usually be fixed by re-installing CocoaPods.
To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

「ios/」に移動して、「pod update」
で、OKだった。

refs:

CI上のFastlane実行だと、下記が有効かもしれない?
https://zenn.dev/colomney/scraps/f8c87e661c0ccf

Discussion