我想在我现有的项目中添加一个Watch App . 当创建一个空白的新的时,下面描述的步骤按预期工作,但是在给定的环境中我无法编译xcode .
在我的项目中,我添加一个Watch File by File> New Target> Watch Kit App当我尝试在Simulator中运行时,或者在设备Build上失败时命令/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ usr / bin / ibtool失败,退出代码为255
我尝试使用命令行工具进行编译,但没有成功,但我希望有更多的信息可以帮助您了解导致问题的原因
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --flatten NO --errors --warnings --notices --module appname_WatchKit_Extension --minimum-deployment-target 8.4 --output-partial-info-plist /Users/johannes/Library/Developer/Xcode/DerivedData/appname-avzktnolxsxcysbudfkawtmkeixs/Build/Intermediates/appname.build/Debug-iphonesimulator/appname\ WatchKit\ App.build/Interface-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compilation-directory /Users/johannes/Library/Developer/Xcode/DerivedData/appname-avzktnolxsxcysbudfkawtmkeixs/Build/Products/Debug-iphonesimulator/appname\ WatchKit\ App.app/Base.lproj /Users/johannes/Documents/Development/projectfoler/appname\ WatchKit\ App/Base.lproj/Interface.storyboard
2015-08-23 22:00:57.776 ibtoold[6319:105962] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-7706/InterfaceBuilderKit/Document/IBDocument.m:2439
Details: Assertion failed: [compiledPackageAsDirectory isDirectory]
Object: <IBStoryboardDocument: 0x7fb28a019800>
Method: -fileWrapperOfType:options:error:
Thread: <NSThread: 0x7fb288c41c60>{number = 1, name = main}
Hints: None
Backtrace:
0 0x00000001011d9c07 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001011d965f _DVTAssertionHandler (in DVTFoundation)
2 0x00000001011d994e _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001011d98b0 _DVTAssertionFailureHandler (in DVTFoundation)
4 0x0000000102050098 -[IBDocument fileWrapperOfType:options:error:] (in IDEInterfaceBuilderKit)
5 0x000000010205c4d9 -[IBDocument hybridPackageWithOptions:error:] (in IDEInterfaceBuilderKit)
6 0x0000000100fe0ece (in ibtoold)
7 0x0000000100fddab3 (in ibtoold)
8 0x0000000100fe0370 (in ibtoold)
9 0x0000000100fe6233 (in ibtoold)
10 0x0000000100fe67b0 (in ibtoold)
11 0x0000000100fe6683 (in ibtoold)
12 0x0000000100fd566a (in ibtoold)
13 0x0000000100fe5e2c (in ibtoold)
14 0x0000000100fe5074 (in ibtoold)
15 0x00007fff8f4af5c9 start (in libdyld.dylib)
Assertion failed: [compiledPackageAsDirectory isDirectory]
任何帮助非常感谢我的想法:-(
1 回答
最新的Xcode Version 7.0 beta 6(7A192o)似乎解决了这个问题 .