我在VMWare中安装了Mac映像并安装了XCode 6.1。当我运行项目时,IDE遇到错误访问。有没有人遇到过这个问题,有没有解决这个问题?
我收到错误"调度队列:com.apple.root.default-qos
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010"
以下是完整的崩溃报告:
Process: Xcode [299]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.1 (7703)
Build Info: IDEFrameworks-7703000000000000~4
App Item ID: 497799835
App External ID: 812230896
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [299]
User ID: 501
Date/Time: 2015-04-26 19:36:47.627 -0700
OS Version: Mac OS X 10.10 (14A238x)
Report Version: 11
Anonymous UUID: F379DDE0-7D57-C054-0C16-360F7F63CAE3
Time Awake Since Boot: 230 seconds
Crashed Thread: 11 Dispatch queue: com.apple.root.default-qos
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010
VM Regions Near 0x10: -->
__TEXT 0000000109edf000-0000000109ee0000 [ 4K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 6D1002
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8c5a35ae mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8c5a275f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8ad78d64 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8ad78255 __CFRunLoopRun + 1381
4 com.apple.CoreFoundation 0x00007fff8ad77aa8 CFRunLoopRunSpecific + 296
5 com.apple.HIToolbox 0x00007fff869e3b3f RunCurrentEventLoopInMode + 235
6 com.apple.HIToolbox 0x00007fff869e38b2 ReceiveNextEventCommon + 431
7 com.apple.HIToolbox 0x00007fff869e36f3 _BlockUntilNextEventMatchingListInModeWithFilter + 71
8 com.apple.AppKit 0x00007fff89453825 _DPSNextEvent + 1000
9 com.apple.AppKit 0x00007fff89452ff9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 139
10 com.apple.dt.DVTKit 0x000000010a633dda -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 237
11 com.apple.AppKit 0x00007fff89446fe3 -[NSApplication run] + 594
12 com.apple.AppKit 0x00007fff89432a9e NSApplicationMain + 1778
libdyld.dylib 0x00007fff8cc055c9 start + 1
由于
答案 0 :(得分:0)
解决方案:修改回放到主线程的UI代码
dispatch_async(dispatch_get_main_queue(), ^{
// addSubview,insertSubview
});