出现错误 xcodebuild exited with status 6
Posted
技术标签:
【中文标题】出现错误 xcodebuild exited with status 6【英文标题】:Getting error xcodebuild exited with status 6 【发布时间】:2016-02-22 21:55:18 【问题描述】:运行返回此警告且未创建可安装产品的测试机器人。有谁知道这个状态是什么意思?
这是构建错误:
`xcodebuild[98753:3595809] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-9548.1/IDEFoundation/Distribution/IDEDistributionMethodStep.m:123
Details: Assertion failed: contentPath
Object: <IDEDistributionMethodStep>
Method: +distributionMethodForSameAsArchive:contentPath:task:logAspect:
Thread: <NSThread: 0x7fa7a9d157f0>number = 1, name = main
Hints: None
Backtrace:
0 0x000000010a6dcacd -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x000000010a6dc601 _DVTAssertionHandler (in DVTFoundation)
2 0x000000010a6dc818 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010a6dc77a _DVTAssertionFailureHandler (in DVTFoundation)
4 0x000000010ac49f04 +[IDEDistributionMethodStep distributionMethodForSameAsArchive:contentPath:task:logAspect:] (in IDEFoundation)
5 0x000000010ac49320 -[IDEDistributionMethodStep loadFromPropertyList:error:] (in IDEFoundation)
6 0x000000010adb7f2f -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation)
7 0x000000010b3e417b -[Xcode3CommandLineBuildTool _distributeArchiveAndExit] (in Xcode3Core)
8 0x000000010b3e7a78 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
9 0x000000010a4a5931 (in xcodebuild)
10 0x00007fff946d95ad start (in libdyld.dylib)`
【问题讨论】:
【参考方案1】:我遇到了同样的问题。我的应用程序链接到 .framework,并且我的框架将 SKIP_INSTALL
构建设置设置为 YES
。将其更改为 NO
已修复。
【讨论】:
以上是关于出现错误 xcodebuild exited with status 6的主要内容,如果未能解决你的问题,请参考以下文章
xcodebuild:使用升级到 XCode 8.1 后出现“需要代码签名”错误
Xcode UI 测试:xcodebuild 无法在 xcode12 上生成 Coverage.profdata,失败并出现错误“错误:无法合并配置文件。”