xcodebuild在Xcode 7.3版中失败

时间:2016-04-19 20:15:24

标签: ios iphone xcode

我们最近将Xcode升级到7.3版。 从那时起,xcodebuild命令在设备上执行测试操作时失败。 通过Xcode UI进行测试没有问题

以下是例外:

2016-03-28 08:27:24.129 xcodebuild[20029:9747786]  DVTAssertions: ASSERTION FAILURE in   /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-10174/DVTFoundation/Utilities/DVTTask.m:252
Details:  The launch path must be set before launching.
Object:   <DVTiPhoneTask: 0x7fd96a67b8d0>
Method:   -launchRunningTerminationHandlerOnQueue:error:terminationHandler:
Thread:   <NSThread: 0x7fd969c53870>{number = 57, name = (null)}
Hints: None

这个例子成功了:

xcodebuild -workspace `pwd`/iComposer.xcworkspace -scheme XXXXXXX -configuration Debug -destination 'platform=iOS,id=XXXXXXX' CONFIGURATION_BUILD_DIR=`pwd`/Builds/

这个失败了(注意'测试'):

xcodebuild -workspace `pwd`/iComposer.xcworkspace -scheme XXXXXXX -configuration Debug -destination 'platform=iOS,id=XXXXXXX' CONFIGURATION_BUILD_DIR=`pwd`/Builds/ test

0 个答案:

没有答案