发布于 2019-06-21 12:34:26
如果您在构建日志中得到类似的消息
[!] 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.
然后,您需要先卸载默认的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
https://stackoverflow.com/questions/56703333
复制相似问题