簡體   English   中英

如何在CodeMagic上設置特定版本的cocoapods

[英]How can I setup a specific version of cocoapods on 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.

那么您需要先卸載默認的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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM