当Xcode 4.6打开故事板时,Xcode 5崩溃
我正在为Xcode 4.6项目工作,现在,我想发送到苹果我的应用程序一切正常,但当我试图在iOS 7上运行应用程序,我看到一些错误; 所以我已经下载了新的Xcode 5以查看错误在哪里,但是当我尝试用IB Xcode崩溃打开故事板时发生了什么 。 我试图在互联网上看到如何解决这个问题,但我没有find任何有关的。
另外,当我尝试在iOS 7 设备上运行应用程序时, Xcode给我的错误是:
CompileStoryboard YatchCo/en.lproj/MainStoryboard.storyboard cd "/Volumes/Dati Lavoro/Mirko/Koffeecup/Y.CO" setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 6.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 6.0 --output-format human-readable-text --compile /Users/iCreil/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/YachtCo.app/en.lproj/MainStoryboard.storyboardc /Volumes/Dati\ Lavoro/Mirko/Koffeecup/Y.CO/YatchCo/en.lproj/MainStoryboard.storyboard 2013-09-22 19:31:37.326 ibtoold[30327:707] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-4510/Framework/Document/Archiving/IBDocumentUnarchiver.m:216 Details: Failed to unarchive an instance of NSFont Object: <IBDocumentUnarchiver: 0x7ffab98295e0> Method: -unarchiveObjectFromElement: Thread: <NSThread: 0x7ffab84191d0>{name = (null), num = 1} Hints: None Backtrace: 0 0x000000010950ebdd -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation) 1 0x000000010950e655 _DVTAssertionHandler (in DVTFoundation) 2 0x000000010950e984 _DVTAssertionFailureHandler (in DVTFoundation) 3 0x00000001088ecd88 __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 4 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 5 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 6 0x00000001088ee0ce -[IBDocumentUnarchiver unarchiveObjectArrayOrDictionaryFromElement:] (in IDEInterfaceBuilderKit) 7 0x00000001088edb86 __55-[IBDocumentUnarchiver unarchiveDictionaryFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 8 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 9 0x00000001088ed7d4 -[IBDocumentUnarchiver unarchiveDictionaryFromElement:] (in IDEInterfaceBuilderKit) 10 0x00000001088ee814 -[IBDocumentUnarchiver unarchiveDictionaryWithName:forOptionalKey:] (in IDEInterfaceBuilderKit) 11 0x00000001088f2685 __77+[NSAttributedString(IBDocumentArchiving) instantiateWithDocumentUnarchiver:]_block_invoke_2 (in IDEInterfaceBuilderKit) 12 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 13 0x00000001088f1021 -[IBDocumentUnarchiverGroupMember(unarchiveContentWithBlock) unarchiveContentWithBlock:] (in IDEInterfaceBuilderKit) 14 0x00000001088f25f1 __77+[NSAttributedString(IBDocumentArchiving) instantiateWithDocumentUnarchiver:]_block_invoke (in IDEInterfaceBuilderKit) 15 0x00000001088eef4f -[IBDocumentUnarchiver enumerateObjectMembers:] (in IDEInterfaceBuilderKit) 16 0x00000001088f2496 +[NSAttributedString(IBDocumentArchiving) instantiateWithDocumentUnarchiver:] (in IDEInterfaceBuilderKit) 17 0x00000001088ecb02 __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 18 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 19 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 20 0x00000001088ef179 -[IBDocumentUnarchiver unarchiveObjectForKey:defaultValue:] (in IDEInterfaceBuilderKit) 21 0x000000010ed4fea1 IBUIAttributedTextContainerUnarchive (in IDEInterfaceBuilderCocoaTouchIntegration) 22 0x000000010ebe0d46 (in IDEInterfaceBuilderCocoaTouchIntegration) 23 0x00000001088ecc6a __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 24 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 25 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 26 0x00000001088ee0ce -[IBDocumentUnarchiver unarchiveObjectArrayOrDictionaryFromElement:] (in IDEInterfaceBuilderKit) 27 0x00000001088ed543 __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 28 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 29 0x00000001088ed2b8 -[IBDocumentUnarchiver unarchiveArrayFromElement:] (in IDEInterfaceBuilderKit) 30 0x00000001088ef328 -[IBDocumentUnarchiver unarchiveArrayWithName:forOptionalKey:defaultValue:] (in IDEInterfaceBuilderKit) 31 0x000000010867aa24 -[NSView(IBDocumentArchivingGenerator) unarchiveWithDocumentUnarchiver:] (in IDEInterfaceBuilderKit) 32 0x000000010ebe18a1 (in IDEInterfaceBuilderCocoaTouchIntegration) 33 0x00000001088ecc6a __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 34 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 35 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 36 0x00000001088ee0ce -[IBDocumentUnarchiver unarchiveObjectArrayOrDictionaryFromElement:] (in IDEInterfaceBuilderKit) 37 0x00000001088ed543 __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 38 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 39 0x00000001088ed2b8 -[IBDocumentUnarchiver unarchiveArrayFromElement:] (in IDEInterfaceBuilderKit) 40 0x00000001088ef328 -[IBDocumentUnarchiver unarchiveArrayWithName:forOptionalKey:defaultValue:] (in IDEInterfaceBuilderKit) 41 0x000000010867aa24 -[NSView(IBDocumentArchivingGenerator) unarchiveWithDocumentUnarchiver:] (in IDEInterfaceBuilderKit) 42 0x000000010ebe18a1 (in IDEInterfaceBuilderCocoaTouchIntegration) 43 0x00000001088ecc6a __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 44 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 45 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 46 0x00000001088ef179 -[IBDocumentUnarchiver unarchiveObjectForKey:defaultValue:] (in IDEInterfaceBuilderKit) 47 0x000000010ebe258b (in IDEInterfaceBuilderCocoaTouchIntegration) 48 0x00000001088ecc6a __51-[IBDocumentUnarchiver unarchiveObjectFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 49 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 50 0x00000001088ec94d -[IBDocumentUnarchiver unarchiveObjectFromElement:] (in IDEInterfaceBuilderKit) 51 0x00000001088ee0ce -[IBDocumentUnarchiver unarchiveObjectArrayOrDictionaryFromElement:] (in IDEInterfaceBuilderKit) 52 0x00000001088ed543 __50-[IBDocumentUnarchiver unarchiveArrayFromElement:]_block_invoke (in IDEInterfaceBuilderKit) 53 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 54 0x00000001088ed2b8 -[IBDocumentUnarchiver unarchiveArrayFromElement:] (in IDEInterfaceBuilderKit) 55 0x00000001088ee789 -[IBDocumentUnarchiver unarchiveArrayWithName:forOptionalKey:] (in IDEInterfaceBuilderKit) 56 0x000000010ecf9172 (in IDEInterfaceBuilderCocoaTouchIntegration) 57 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 58 0x00000001088f1021 -[IBDocumentUnarchiverGroupMember(unarchiveContentWithBlock) unarchiveContentWithBlock:] (in IDEInterfaceBuilderKit) 59 0x000000010ecf8fbb (in IDEInterfaceBuilderCocoaTouchIntegration) 60 0x00000001088eed39 -[IBDocumentUnarchiver enumerateGroupMembers:] (in IDEInterfaceBuilderKit) 61 0x000000010ecf8e93 (in IDEInterfaceBuilderCocoaTouchIntegration) 62 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 63 0x00000001088eeb23 -[IBDocumentUnarchiver enterGroupWithName:optionalKey:usingBlock:] (in IDEInterfaceBuilderKit) 64 0x000000010ecf8df0 (in IDEInterfaceBuilderCocoaTouchIntegration) 65 0x0000000108690feb -[IBDocument unarchiveDocument:] (in IDEInterfaceBuilderKit) 66 0x000000010ecf966e (in IDEInterfaceBuilderCocoaTouchIntegration) 67 0x00000001088eb026 -[IBDocumentUnarchiver recurseWithElement:kind:invokingBlock:] (in IDEInterfaceBuilderKit) 68 0x00000001088eb28b -[IBDocumentUnarchiver unarchiveDocument:] (in IDEInterfaceBuilderKit) 69 0x00000001086895d3 __81-[IBDocument decodeContentFileWrapper:fileDataType:typeName:decodingStyle:error:]_block_invoke (in IDEInterfaceBuilderKit) 70 0x00000001086bdb14 -[IBDocument runBlockInNewArbitrationStackEntryWithBehavior:block:] (in IDEInterfaceBuilderKit) 71 0x00000001086892c8 -[IBDocument decodeContentFileWrapper:fileDataType:typeName:decodingStyle:error:] (in IDEInterfaceBuilderKit) 72 0x0000000108689835 -[IBDocument readFromFileWrapper:ofType:error:] (in IDEInterfaceBuilderKit) 73 0x00007fff8f4ef527 -[NSDocument readFromURL:ofType:error:] (in AppKit) 74 0x0000000108681110 __39-[IBDocument readFromURL:ofType:error:]_block_invoke (in IDEInterfaceBuilderKit) 75 0x00000001086b5612 -[IBDocument invokeWithUndoSuppressed:] (in IDEInterfaceBuilderKit) 76 0x0000000108680e5f -[IBDocument readFromURL:ofType:error:] (in IDEInterfaceBuilderKit) 77 0x0000000108482712 (in ibtoold) 78 0x000000010847e1e0 (in ibtoold) 79 0x0000000108483c21 (in ibtoold) 80 0x000000010848e23d (in ibtoold) 81 0x000000010848e781 (in ibtoold) 82 0x000000010848e654 (in ibtoold) 83 0x000000010848cade (in ibtoold) 84 0x000000010848deb2 (in ibtoold) 85 0x000000010848d610 (in ibtoold) 86 0x00007fff97e4d7e1 start (in libdyld.dylib) Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
问题是我在这个项目中使用了2个Mac,而在我安装了Xcode 5的Mac中 ,我没有安装我在项目中使用的新字体(以及我在故事板中使用的字体)。
所以为了解决这个问题,我刚刚安装了字体到我遇到问题的Mac
我回答我的问题,帮助那些将有我的同样的问题的人!
在Xcode 5中,转至“首选项”>“源代码pipe理”>取消选中“启用源代码”控制
当您生成具有您的生成计算机上未安装的自定义字体的xib文件时,会发生此错误。 看下面的例子我正在使用称为源Sans Pro的自定义字体加粗我的UILabel。
您需要在您正在构build的计算机上的项目中安装自定义字体。 您可以通过Font Book或将自定义字体文件复制到/Library/Fonts
。
- 使用iOS 4.3模拟器的iOS SIGKILL带有无趣的回溯
- 不可重现的networking核心崩溃
- 崩溃CGDataProviderCreateWithCopyOfData:vm_copy失败:状态1
- Swift 3项目中的Unity实现:应用程序启动崩溃 – MetadataCache :: Initialize()
- 防止在uinavigationcontroller安装程序中对popViewControllerAnimated进行错误的访问崩溃
- UIScrollView setContentSize使用未捕获的NSRangeException崩溃
- 当在两个嵌套子类中调用super.viewDidLoad()时,我得到了Swift无限循环
- 如何找出是什么导致IOS设备上的错误崩溃报告?
- iOS7崩溃 – [__NSPlaceholderDictionary initWithObjects