xcode将无法编译iOS应用程序,在打开.xib或.storyboard文件时崩溃 [英] xcode won't compile iOS apps, crashes when .xib or .storyboard files are opened

查看:1400
本文介绍了xcode将无法编译iOS应用程序,在打开.xib或.storyboard文件时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm running the very latest version of xcode (4.2.1). And I'm signed up to the ios developer program.

当我为iPhone或iPad创建一个新的iOS应用程序时,使用故事板或不使用它似乎并不重要,当我尝试打开.xib或.storyboard文件时,xcode崩溃了。

When I create a new iOS Application for iPhone or iPad, using storyboards or not it doesn't seem to matter, xcode crashes on me when I try to open the .xib or .storyboard files.

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

Here is the error provided when I click on the storyboard file before it crashes.

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}

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

Something to do with the iOS simulator? Exactly the same message appears when I try open an .xib file.

当我尝试运行或测试项目时,我在尝试编译故事板时遇到错误或xib文件。例如

When I try to run or test a project I get an error when it tries to compile the storyboard or xib files. eg

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

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

Please help! How do I get this to work again?

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

I've since totally uninstalled and re-installed developer tools. Same problem still occurs. It seems to be something to do with the iphone simulator as when I try to run the simulator app by itself it instantly crashes too. (see attached screenshot). What is going on?! :(

-----更新2

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

Still having this problem! I can sometimes build applications, but as soon as I click on either the .xib or .storyboard file (in separate projects) xcode crashes. When they do succeed I get the error above that the simulator has issues locating the SDK.

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

I've uninstalled and reinstalled xcode about five times now and the same issues keeps occurring.

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

Here is the crash report from the "Interface Builder Cocoa Touch Tool" error. If it makes sense to anyone? Crash Report

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

Does anyone have any other ideas? Starting to get pretty desperate.

推荐答案

你安装了 TotalFinder

由于TotalFinder的 Asepsis导致同样的问题功能。

I had the same problem caused by TotalFinder's Asepsis feature.

无菌当前版本(1.1)与Xcode 4.2和Glims冲突(见图)。

Asepsis current Version (1.1) Conflicts with Xcode 4.2 and Glims (see image).

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

The Website lists this known issue:


Xcode 4.2,iOS 5.0模拟器

Xcode 4.2, iOS 5.0 Simulator

一些开发人员报告说Asepsis打破iOS 5.0模拟器和
导致Xcode 4.2无法加载XIB文件

Some developers reported that Asepsis breaks iOS 5.0 Simulator and causes Xcode 4.2 fail in loading XIB files

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

to uninstall just run this command from Terminal:

sudo open /System/Library/Extensions/Asepsis.kext/Contents/Resources/Asepsis\ Uninstaller.app

这篇关于xcode将无法编译iOS应用程序,在打开.xib或.storyboard文件时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆