2013-09-22 212 views
9

我正在爲一個項目與Xcode 4.6自2 mounth前,現在我想發送到蘋果我的應用程序一切都很好,但是當我試圖運行應用程序iOS 7我看到了一些錯誤;所以我已經下載了新的Xcode 5以查看錯誤在哪裏,但是發生的是當我嘗試用IB Xcode崩潰打開故事板時。我試圖在互聯網上看到如何解決這個問題,但我沒有找到任何有關這個問題。Xcode 5崩潰時打開從Xcode 4.6製作的故事板

而且該錯誤的Xcode給我,當我嘗試與運行設備上應用的iOS 7是:

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 

回答

13

的問題是,我在這2個蘋果合作項目和Mac我已經安裝了Xcode 5我沒有安裝我在項目中使用的新字體(以及我在故事板中使用的字體)。

因此,對於解決我剛剛安裝的字體到Mac上的問題,在我得到的問題

我回答我的幫助別人,就會有我同樣的問題的問題!

+0

我試着添加自定義字體文件。當我選擇故事板時,xcode仍然崩潰。任何想法 ? – Sam

+0

給你同樣的錯誤? –

+0

是的。當我嘗試運行它時,我得到相同的錯誤。當我選擇故事板時,它只是崩潰! – Sam

1

在Xcode中5轉至首選項>源代碼控制>取消選中啓用源代碼控制

+0

謝謝你的男人!但我解決了這個問題。我剛剛安裝了新的字體,然後一切正常 –

+0

我試過了,但沒有運氣! – Sam

0

當你構建具有未被您的構建機器上安裝的自定義字體的廈門國際銀行文件會出現此錯誤。請參閱下面的示例我正在使用名爲Source Sans Pro Bold我的UILabel的自定義字體。

Using custom fonts in Interface Builder

你需要在你的項目,你正在構建的計算機上安裝自定義字體。您可以通過Font Book或將自定義字體文件複製到/Library/Fonts