Nei*_*ard 2 continuous-integration flutter codemagic
我的codemagic工作流中的 cocoapods 版本低于我的 Flutter 项目使用的版本。如何为我的 codemagic 工作流程设置特定版本的 cocoapods?
谢谢
索伦
如果您在构建日志中收到类似消息
[!] 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.
Run Code Online (Sandbox Code Playgroud)
那么你需要先卸载默认的 CocoaPods 版本,然后再安装正确的版本。您可以通过下一个预构建脚本来完成。
#!/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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2133 次 |
| 最近记录: |