The version of cocoapods in my codemagic workflow is lower than what is used by my Flutter project. How can I setup a specific version of cocoapods for my codemagic workflow?
Thank you
Søren
The version of cocoapods in my codemagic workflow is lower than what is used by my Flutter project. How can I setup a specific version of cocoapods for my codemagic workflow?
Thank you
Søren
If you get similar message in build log
[!] The version of CocoaPods used to generate the lockfile (1.7.2) is higher than the version of the current executable (1.6.1). Incompatibility issues may arise.
then you need to uninstall default CocoaPods version first and then install the correct one. You can do it via next pre-build script.
#!/bin/sh
set -e # exit on first failed command
set -x # print all executed commands to the log
gem uninstall cocoapods --all
gem install cocoapods -v 1.7.2
cd $FCI_BUILD_DIR/ios
pod install