gpt4 book ai didi

ios - Travis-CI错误,显示“eval pod install”

转载 作者:行者123 更新时间:2023-12-01 16:09:13 24 4
gpt4 key购买 nike

我的.travis.yml文件:

language: objective-c

script:
xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator

Travis-CI在构建项目时说:
$ bundle --version
Bundler version 1.7.4
$ xcodebuild -version -sdk
$ pod --version
0.34.4
Installing Pods with 'pod install'
$ pushd .
~/build/GabrielMassana/ProjectName-iOS
$ pod install

安装Pod时,错误为:
The command "eval pod install" failed. Retrying, 2 of 3.
The command "eval pod install" failed. Retrying, 3 of 3.
The command "eval pod install" failed 3 times.
The command "pod install" failed and exited with 1 during .
Your build has been stopped.

最佳答案

我发现添加这些行可以解决我的问题。

before_install:
- rvm use system
- sudo gem install cocoapods -v '0.39.0'

所以我最后的 .travis.yml文件:
language: objective-c

before_install:
- rvm use system
- sudo gem install cocoapods -v '0.39.0'

script:
xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator

现在,cocoapods完成安装。

某些Travis机器可能已设置为与旧版本(0.34.4)一起运行

I also wrote a post in my blog about Travis-CI.

关于ios - Travis-CI错误,显示“eval pod install”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35187768/

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