我正在使用xcode插件。 我環顧四周,但大部分「解決方案」都沒有奏效。Xcodebuild在jinkkins與cocoapods失敗
我的主要問題是,在生成的xcworkspace中,沒有針對我正在嘗試構建的項目的方案。該插件確實命令
$ /usr/bin/xcodebuild -list -workspace Project.xcworkspace
和輸出只顯示波德的方案,而不是主要的項目方案。
Information about workspace "Project": Schemes: Pods Pods-AFNetworking Pods-Bolts Pods-Facebook-iOS-SDK
我有的CocoaPods與pod install
我把這個作爲Xcode的插件CONFIGS buildstep:目標:項目,構建,配置前清潔:調試時,Xcode架構文件:項目,Xcode的工作區文件:項目,構建輸出目錄:$ {WORKSPACE}/build。
這是一個被打印出來的錯誤:
Going to invoke xcodebuild:, scheme: Project, sdk: DEFAULT, workspace: Project, configuration: Debug, clean: YES, archive:NO, symRoot: DEFAULT, configurationBuildDir: /Users/ignat/.jenkins/workspace/Project/build, codeSignIdentity: DEFAULT
[Project] $ /usr/bin/xcodebuild -scheme Project -workspace Project.xcworkspace -configuration Debug clean build CONFIGURATION_BUILD_DIR=/Users/ignat/.jenkins/workspace/Project/build
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/ignat/.jenkins/workspace/Project/build
xcodebuild: error: The workspace 'Project' does not contain a scheme named 'Project'.
FATAL: Build directory does not exist at /Users/ignat/.jenkins/workspace/Project/build. Potential configuration issue.
Build step 'Xcode' marked build as failure
Finished: FAILURE
該方案應該放在容器Project項目還是Pods項目中? – Ignat 2014-09-05 16:38:24
它屬於Project項目,因爲Pods項目只管理窗格,而Project項目管理項目的所有源文件和設置。 – LodeRunner 2014-09-05 16:41:14
這個「計劃」信息不應該在工作區中嗎? – Ignat 2014-09-05 17:27:09