-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceI get the following error while trying to push my iOS app to the App store. I understand this error is due to the incorrect installation of Cocoapods on the Mac M2 instance I'm assigned to use in building the app on Codemagic. Archiving com.d818.d818-food-app... CocoaPods not installed or not in valid state. Build failed :| Expected resultsiOS app successfully built Actual resultsWarning: CocoaPods is installed but broken. Skipping pod install. Build id (optional)679860de50c88cb026ef9f75 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Enisco 1. Check Local Versions: Verify the Xcode version and CocoaPods version on your local machine using the following commands:
Ensure these match the versions used in your Codemagic workflow. If there’s a mismatch, try updating or downgrading accordingly. 2. Use the Default CocoaPods Version: Some users have resolved this issue by selecting the default/pre-installed CocoaPods version under the CocoaPods dropdown in the Codemagic Workflow Editor (especially when using Xcode 15.1). 3. Manually Set CocoaPods Version: If needed, explicitly set the CocoaPods version to 1.16.2 in codemagic.yaml to prevent compatibility issues:
I hope this helps others facing the same issue. |
Beta Was this translation helpful? Give feedback.
Thank for sharing this @majdkz97!
@Enisco Seeing that you are using the Workflow Editor, the second solution here should work in your case. Select the default cocoapods version or use solution 3 in your pre-build script.
I hope these help.