EXC_BAD_ACCESS(SIGSEGV)通过运行断点发生

时间:2015-05-20 12:46:16

标签: xcode swift

每次我使用cmd + R的断点运行app时,都会收到以下错误报告。 但没有断点就不会发生。

以下只是摘录,因为它太长了。

Process:               Xcode [1979]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               6.3.2 (7718)
Build Info:            IDEFrameworks-7718000000000000~2
App Item ID:           497799835
App External ID:       812404257
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [1979]
User ID:               501

Date/Time:             2015-05-20 21:23:33.314 +0900
OS Version:            Mac OS X 10.10.3 (14D136)
Report Version:        11
Anonymous UUID:        DF41C897-AEB0-55A8-F81A-A5CFBC23D66C


Time Awake Since Boot: 2100 seconds

Crashed Thread:        26

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 000000010acf8000-000000010acf9000 [    4K] r-x/rwx SM=COW  /Applications/Xcode.app/Contents/MacOS/Xcode

Application Specific Information:
ProductBuildVersion: 6D2105

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff95f9d4de mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff95f9c64f mach_msg + 55
2   com.apple.CoreFoundation        0x00007fff88976eb4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation        0x00007fff8897637b __CFRunLoopRun + 1371
4   com.apple.CoreFoundation        0x00007fff88975bd8 CFRunLoopRunSpecific + 296
5   com.apple.HIToolbox             0x00007fff8b92756f RunCurrentEventLoopInMode + 235
6   com.apple.HIToolbox             0x00007fff8b9272ea ReceiveNextEventCommon + 431
7   com.apple.HIToolbox             0x00007fff8b92712b _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit                0x00007fff8a50a9bb _DPSNextEvent + 978
9   com.apple.AppKit                0x00007fff8a509f68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
10  com.apple.dt.DVTKit             0x000000010b453aaa -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 237
11  com.apple.AppKit                0x00007fff8a4ffbf3 -[NSApplication run] + 594
12  com.apple.AppKit                0x00007fff8a47c354 NSApplicationMain + 1832

我的环境是

型号:MacBookAir6,2,BootROM MBA61.0099.B18,2处理器,Intel Core i5,1.3 GHz,4 GB,SMC 2.13f15 图形:Intel HD Graphics 5000,Intel HD Graphics 5000,内置 内存模块:BANK 0 / DIMM0,2 GB,DDR3,1600 MHz,0x02FE,0x45424A3230554638454455302D474E2D4620 内存模块:BANK 1 / DIMM0,2 GB,DDR3,1600 MHz,0x02FE,0x45424A3230554638454455302D474E2D4620 AirPort:spairport_wireless_card_type_airport_extreme(0x14E4,0x117),Broadcom BCM43xx 1.0(7.15.166.24.3) 蓝牙:版本4.3.4f4 15601,3个服务,27个设备,1个传入串行端口 网络服务:Wi-Fi,AirPort,en0 串行ATA设备:APPLE SSD SM0256F,251 GB USB设备:内部存储卡读卡器 USB设备:BRCM20702集线器 USB设备:蓝牙USB主机控制器 Thunderbolt Bus:MacBook Air,Apple Inc.,23.6

1 个答案:

答案 0 :(得分:0)

在XCode的“可执行文件”中双击您的可执行文件

- 打开“参数”选项卡

-In“要在环境中设置的变量”(这是底部的列表,请注意您编辑的那个)单击“+”按钮,对于变量名称,输入“NSZombieEnabled”,输入值“YES” “