【问题标题】:Xcode can't compile XIBsXcode 无法编译 XIB
【发布时间】:2013-04-09 07:54:44
【问题描述】:

我收到以下错误消息,并且多个 XIB 编译失败,退出代码为 6。我无法理解它。有谁知道可能出了什么问题?

我已经清理了项目,但这没有帮助。

错误仅在存档时发生,而不是在简单地运行应用程序时发生。编辑:从头开始,在我完成构建(和清理)之后,运行不再有效。

CompileXIB MyProject/en.lproj/MainMenu.xib
    cd /Users/wesley/XCode/MyProject
    setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/wesley/Library/Developer/Xcode/DerivedData/MyProject-ciandcogabqifsfgbscfrfgabfet/Build/Intermediates/ArchiveIntermediates/MyProject/InstallationBuildProductsLocation/Applications/MyProject.app/Contents/Resources/en.lproj/MainMenu.nib /Users/wesley/XCode/MyProject/MyProject/en.lproj/MainMenu.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

2013-04-09 09:48:22.377 ibtoold[77454:1207] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-3084/ibtool/IBToolErrorForwarder.m:32Details:  Unhandled error: 13Object:   <IBToolErrorForwarder: 0x401036100>Method:   -initThread:   <NSThread: 0x40030a1e0>{name = (null), num = 1}Hints: NoneBacktrace:  0  0x000000010c04c7c3 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundatio  1  0x000000010c04c5f4 _DVTAssertionFailureHandler (in DVTFoundatio  2  0x000000010b571bba (in ibtool  3  0x000000010b569115 (in ibtool  4  0x000000010b563f74 (in ibtool  5  0x00000000000000Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 6

【问题讨论】:

    标签: objective-c xcode cocoa interface-builder xib


    【解决方案1】:

    断言失败原因:-它可能是您正在打开的文件或损坏的首选项。尝试删除首选项或打开已知良好的 nib/xib 文件。

    还有

    删除“派生数据”文件夹中的所有内容

    清理您的项目。 更多类似问题xcode won't compile iOS apps, crashes when .xib or .storyboard files are opened帮你!

    也试试

    从您的 *.xcdatamodeld 目录中删除所有未在 XCode 中显示的 *.xcdatamodel 目录。这些目录出现在 XCode 中 *.xcdatamodel 重命名之后。

    【讨论】:

    • 谢谢,我做了更多的测试,甚至在新项目上也会发生这种情况。我卸载了 xcode,然后重新安装了它,但问题仍然存在。
    • 现在检查,我已经修改了答案!
    • 谢谢,一开始没用,但重启后就可以了。 :)
    猜你喜欢
    • 2011-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-26
    • 1970-01-01
    • 2018-04-03
    • 2016-12-29
    相关资源
    最近更新 更多