2016-02-03 75 views
1

.travis.yml文件:與特拉維斯-CI錯誤 「EVAL吊艙安裝」

language: objective-c 

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

雖然特拉維斯-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 

在安裝吊艙的錯誤是:

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. 

回答

3

我發現添加這行代碼解決了我的問題。

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完成安裝。

也許有些特拉維斯機設置爲與舊版本(0.34.4)

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

運行