安装xCode 7和xCode 6.4后,iOS模拟器崩溃

时间:2015-07-15 16:12:07

标签: xcode ios-simulator

我在优胜美地,我有xCode 6.3和xCode 7 beta 1.当我更新xCode 6.3到6.4时,模拟器开始崩溃。我附上了崩溃日志。似乎xCode 7覆盖了一些在6.4尝试使用时崩溃的库。有任何想法吗?因此,我想避免重新映像我的Mac。

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   launchd_sim                     0x0000000109c95fee 0x109c6e000 + 163822
1   launchd_sim                     0x0000000109c72dc4 0x109c6e000 + 19908
2   libdyld.dylib                   0x000000010a07c145 start + 1

2 个答案:

答案 0 :(得分:4)

这是我的问题 我的mac环境是OSX 10.10,安装Xcode 7.1和Xcode 6.4。

问题:打开xib会在Xcode 6.4中崩溃并运行模拟器,但某些图像没有显示。

然后这是崩溃日志:

  

ProductBuildVersion:6E35b
  /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-7703/InterfaceBuilder/Utilities/IBObjectMarshalling.m:45中的ASSERTION FAILURE   详细信息:无法启动Interface Builder Cocoa Touch Tool:Error Domain = com.apple.InterfaceBuilder Code = -1"遇到与Interface Builder WatchKit Tool通信时出错。" UserInfo = {NSUnderlyingError = 0x7fda9024eda0 {错误域= IBMessageChannelErrorDomain代码= 1"无法与Interface Builder&#34通信;的UserInfo = {IBAbstractPlatformToolCrashLog =
  Dyld错误消息:
    未加载库:/System/Library/PrivateFrameworks/PepperUICore.framework/PepperUICore
    参考自:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/Interface Builder WatchKit工具
    原因:未找到图像

解决方案: 我不知道为什么Xcode 6.4在运行模拟器时会使用iOS 9.0.simruntime, 所以我打开finder然后转到/ Library / Developer / CoreSimulator / Profiles / Runtimes移动iOS 9.0.simruntime 那么Xcode6.4就可以了。

希望它可以帮助你。

答案 1 :(得分:-1)

sudo ln -s "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/PepperUICore.framework" /System/Library/PrivateFrameworks/PepperUICore.framework

sudo ln -s "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SockPuppetGizmo.framework" /System/Library/PrivateFrameworks/SockPuppetGizmo.framework

使用这两个,你就会得到解决方案。