[英]How can I setup a specific version of cocoapods on codemagic
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. 那么您需要先卸载默认的CocoaPods版本,然后再安装正确的版本。 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.