gpt4 book ai didi

flutter - 如何在 codemagic 上设置特定版本的 cocoapods

转载 作者:IT王子 更新时间:2023-10-29 06:56:31 25 4
gpt4 key购买 nike

我的cocoapods版本codemagic工作流程比我的 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

关于flutter - 如何在 codemagic 上设置特定版本的 cocoapods,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56703333/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com