2014-07-10 67 views
3

我目前正在試驗Jenkins和CocoaPods。我已經讀過,將Jenkins的CocoaPods和Xcode插件添加到Jenkins中就足夠了。好像我錯過了一些東西,但我無法弄清楚。Jenkins&CocoaPods

Xcode工作區配置爲具有派生的數據文件夾相對於工作區和該文件夾構建。 工作區中的主項目模式文件是共享的。 而這一切被推到資源庫:https://github.com/cyupa/JenkinsWithCocoaPods.git

我還是結束了同一個控制檯輸出,這是不能夠找到莢庫的構建:中

library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) 

** BUILD FAILED ** 

The following build commands failed:  
Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/armv7s/JenkinsWithCocoaPods normal armv7s  
Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/armv7/JenkinsWithCocoaPods normal armv7 
Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/arm64/JenkinsWithCocoaPods normal arm64 (3 failures) Build step 'Xcode' marked build as failure 
Finished: FAILURE 

任何想法,我可能會做錯嗎?我應該運行一些腳本,是不是xcodebuild已經在構建目標時集成了Pods構建?

+1

運氣好嗎?我有同樣的問題... – Redwarp

+0

嗨,Redwarp,請參閱下面的答案。 – Cyupa

回答

6

過了一段時間,我設法做對了。由於CocoaPods添加了更多構建方案,因此您必須指定要使用的方案。在這種情況下,與主要目標相關的主要方案。 我還編寫了一個關於如何在這裏爲您的iOS項目設置Jenkins的分步教程:https://github.com/cyupa/JenkinsCI-iOS