xcode将无法编译iOS应用程序,在打开.xib或.storyboard文件时崩溃

mar*_*wie 2 iphone xcode ios xcode4.2

我正在运行最新版本的xcode(4.2.1).我已经注册了ios开发者计划.

当我为iPhone或iPad创建新的iOS应用程序时,无论是否使用故事板似乎并不重要,当我尝试打开.xib或.storyboard文件时,xcode会崩溃.

这是我在故事板崩溃之前单击故事板文件时提供的错误.

ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IB Plugin/Utilities/IBObjectMarshalling.m:179
Details:  Interface Builder encountered an error communicating with the iOS Simulator. "Interface Builder Cocoa Touch Tool" (54332) failed to launch and exited with status (null), signal 10. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
Function: NSDistantObject<IBCocoaTouchToolProtocol> *IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *)
Thread:   <NSThread: 0x40010a260>{name = (null), num = 1}
Run Code Online (Sandbox Code Playgroud)

与iOS模拟器有什么关系?当我尝试打开.xib文件时,会出现完全相同的消息.

当我尝试运行或测试项目时,我在尝试编译storyboard或xib文件时收到错误.例如

CompileXIB EmptyViewTest/en.lproj/com_markstewart_comViewController.xib
    cd /Users/mark/Sites/_iOS/EmptyViewTest/EmptyViewTest
    setenv IBC_MINIMUM_COMPATIBILITY_VERSION 5.0
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
    /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/mark/Library/Developer/Xcode/DerivedData/EmptyViewTest-dxxqhrayajehooezj flgyjqysqkp/Build/Products/Debug-iphonesimulator/EmptyViewTest.app/en.lproj/com_ markstewart_comViewController.nib /Users/mark/Sites/_iOS/EmptyViewTest/EmptyViewTest/EmptyViewTest/en.lproj/com_m arkstewart_comViewController.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0 .sdk
Run Code Online (Sandbox Code Playgroud)

请帮忙!我如何让它再次运作?


我已经完全卸载并重新安装了开发人员工具.同样的问题仍然存在.它似乎与iphone模拟器有关,因为当我尝试单独运行模拟器应用程序时它也会立即崩溃.(见附件截图).到底是怎么回事?!:(

ios模拟器也崩溃了

-----更新2

还有这个问题!我有时可以构建应用程序,但是一旦我单击.xib或.storyboard文件(在单独的项目中),xcode就会崩溃.当它们成功时,我得到上面的错误,模拟器在定位SDK时遇到问题.

我现在已经卸载并重新安装xcode大约五次,同样的问题一直在发生.

以下是"Interface Builder Cocoa Touch Tool"错误的崩溃报告.如果对任何人都有意义吗?崩溃报告

有没有人有任何其他想法?开始变得非常绝望.

Flo*_*ori 6

你安装了TotalFinder吗?

我遇到了由TotalFinder的Asepsis功能引起的同样问题.

Asepsis当前版本(1.1)与Xcode 4.2和Glims冲突(见图). 在此输入图像描述

该网站列出了这个已知问题:

Xcode 4.2,iOS 5.0模拟器

一些开发人员报告说,Asepsis破坏了iOS 5.0模拟器并导致Xcode 4.2在加载XIB文件时失败

卸载只需从终端运行此命令:

sudo open /System/Library/Extensions/Asepsis.kext/Contents/Resources/Asepsis\ Uninstaller.app
Run Code Online (Sandbox Code Playgroud)