我正在尝试为自动构建设置 jenkins 环境。当我在项目开发文件夹中时,一切正常。但是从“jenkins”文件夹运行相同的命令失败:
xcodebuild -scheme myApp -workspace my-app.xcworkspace -configuration Release build
带有错误说明:
xcodebuild: error: Failed to build workspace my-app with scheme myApp.
Reason: Scheme "myApp" is not configured for running.
方案“myApp”是否在包含该项目的容器项目或工作区中,没有任何区别。在查看方案文件时,似乎运行应该没问题(但我不得不承认我不知道为什么普通构建需要运行):
<BuildAction
parallelizeBuildables = "NO"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C0D73B7A15EF580200AFFFA5"
BuildableName = "myApp.app"
BlueprintName = "myApp"
ReferencedContainer = "container:myApp.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
任何猜测可能是什么问题?我已经重置,重新配置,清理,删除,重新创建等所有相关的方案和工作空间,并且没有想法......现在我要去购买 Kaleidoscope,希望它可以显示一些隐藏的神奇差异。
更新:一个明显的区别是 jenkins 缺少我所有的 xcuserdata 文件夹和其中的东西。这会以某种方式导致此错误吗?