swift:无法与Interface Builder通信

时间:2014-06-05 05:50:49

标签: ios swift

我刚刚在xcode 6 beta中打开了现有项目。但它崩溃了以下错误信息。

dyld: problem loading iOS simulator dyld
2014-06-05 11:15:06.604 ibtoold[952:507] Init failed: Error Domain=IBMessageChannelErrorDomain Code=1 "Failed to communicate with Interface Builder" UserInfo=0x7fd09861dbf0 {NSLocalizedDescription=Failed to communicate with Interface Builder, NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool crashed: EXC_BREAKPOINT (SIGTRAP), IBCrashLog=

Dyld Error Message:
  problem loading iOS simulator dyld
}
2014-06-05 11:15:06.605 ibtoold[952:507] [MT] DVTAssertions: Warning in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-6154.17/InterfaceBuilderKit/Utilities/IBAbstractMessageChannelInterfaceBuilderToolManager.m:76
Details:  Failed to attach to Interface Builder Cocoa Touch Tool with error: Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with Interface Builder Cocoa Touch Tool." UserInfo=0x7fd09b3a1360 {NSUnderlyingError=0x7fd09861d710 "Failed to communicate with Interface Builder", NSLocalizedDescription=Encountered an error communicating with Interface Builder Cocoa Touch Tool., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool (962) failed to launch and exited with status (null), signal 5.



Dyld Error Message:
  problem loading iOS simulator dyld
}
Object:   <IBCocoaTouchToolManager: 0x7fd09b478a40>
Method:   -attachToToolForTargetRuntime:scaleFactor:assertOnFailureToAttach:assertOnPostLaunchRequestFailures:error:
Thread:   <NSThread: 0x7fd098614780>{name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-06-05 11:15:06.914 ibtoold[952:507] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-6153.11/InterfaceBuilder/Utilities/IBObjectMarshalling.m:45
Details:  Failed to launch Interface Builder Cocoa Touch Tool: Error Domain=com.apple.InterfaceBuilder Code=-1 "Encountered an error communicating with Interface Builder Cocoa Touch Tool." UserInfo=0x7fd09b3a1360 {NSUnderlyingError=0x7fd09861d710 "Failed to communicate with Interface Builder", NSLocalizedDescription=Encountered an error communicating with Interface Builder Cocoa Touch Tool., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason=Interface Builder Cocoa Touch Tool (962) failed to launch and exited with status (null), signal 5.

xib是否可以在xcode beta上运行?

3 个答案:

答案 0 :(得分:18)

这解决了Interface Builder问题。

cd /Applications/Xcode.app
cd Contents/Developer/Platforms/iPhoneSimulator.platform  
cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib  
sudo mv dyld_sim dyld_sim.orig  

答案 1 :(得分:6)

根据@ThePaddedCell,我做了以下步骤,它终于为我工作了

1)Move xcode6-beta进入应用程序文件夹

2)Restart mac并从应用程序文件夹中打开xcode6-beta。

但我不知道为什么..如果有人知道这个原因,欢迎更新我的回答。

答案 2 :(得分:0)

将Xcode移至应用程序然后检查是否仍然无法解决问题,然后重新启动Mac并从应用程序中打开xcode。