Travis-CI error with“eval pod install” [英] Travis-CI error with "eval pod install"
本文介绍了Travis-CI error with“eval pod install”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 .travis.yml
档案:
语言:客观-c
script:
xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator
虽然Travis-CI正在建设该项目,但它表示:
$ bundle --version
Bundler 1.7.4版
$ xcodebuild -version -sdk
$ pod --version
0.34.4
使用pod install安装Pods
$ pushd 。
〜/ build / GabrielMassana / ProjectName-iOS
$ pod install
安装pod的错误是:
命令eval pod install失败。重试,2之3
命令eval pod install失败。正在重试,3之3。
命令eval pod install失败了3次。
命令pod install失败,并在1秒内退出。
您的构建已停止。
解决方案
我发现添加这一行解决了我的问题。
before_install:
- rvm use system
- sudo gem install cocoapods -v'0.39.0'
所以我的最后 .travis.yml
:
语言:objective-c
before_install:
- rvm use system
- sudo gem install cocoapods -v'0.39.0'
脚本:
xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator
$ c $
可能有些Travis机器设置为运行旧版本(0.34.4)
My .travis.yml
file:
language: objective-c
script:
xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator
While Travis-CI is building the project it says:
$ 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
While installing pods the error is:
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.
解决方案 I discovered that adding this lines solves my problem.
before_install:
- rvm use system
- sudo gem install cocoapods -v '0.39.0'
So my final .travis.yml
file:
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
Now cocoapods finish installing.
Probably some Travis machines are set up to run with an old version (0.34.4)
I also wrote a post in my blog about Travis-CI.
这篇关于Travis-CI error with“eval pod install”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文