EXC_BAD_ACCESS (Code = 1, Adresse = 0x0) beim Einstieg in den Debugger

Meine Anwendung stürzt jedes Mal ab, wenn ich versuche, einen Anruf zu überspringen. Ohne Debugger funktioniert es einwandfrei.

Wenn ich die App im Simulator starte, funktioniert sie auch mit oder ohne Debugger.

Kürzlich habe ich mein Mac OS X 10.8 auf 10.9 (Mavericks) aktualisiert. Vor dem Upgrade gab es keine Probleme.

Was verursacht das Problem und wie kann ich es beheben?

Unten ist die Rückenspur. Meine App verwendet ARC. Ich habe Zombies aktiviert und einen Ausnahme-Haltepunkt hinzugefügt, aber es wurden keine Zombies erkannt und der Ausnahme-Haltepunkt wird nie ausgelöst.

    * thread #1: tid = 0x2503, 0x00000000, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
        frame #0: 0x00000000
        frame #1: 0x35e170c4 UIKit`-[UIApplication sendAction:to:from:forEvent:] + 72
        frame #2: 0x35e17076 UIKit`-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
        frame #3: 0x35e17054 UIKit`-[UIControl sendAction:to:forEvent:] + 44
        frame #4: 0x35e1690a UIKit`-[UIControl(Internal) _sendActionsForEvents:withEvent:] + 502
        frame #5: 0x35e16e00 UIKit`-[UIControl touchesEnded:withEvent:] + 488
        frame #6: 0x35d3f5f0 UIKit`-[UIWindow _sendTouchesForEvent:] + 524
        frame #7: 0x35d2c800 UIKit`-[UIApplication sendEvent:] + 380
        frame #8: 0x35d2c11a UIKit`_UIApplicationHandleEvent + 6154
        frame #9: 0x37a1e5a2 GraphicsServices`_PurpleEventCallback + 590
        frame #10: 0x37a1e1d2 GraphicsServices`PurpleEventCallback + 34
        frame #11: 0x33ef9172 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
        frame #12: 0x33ef9116 CoreFoundation`__CFRunLoopDoSource1 + 138
        frame #13: 0x33ef7f98 CoreFoundation`__CFRunLoopRun + 1384
        frame #14: 0x33e6aebc CoreFoundation`CFRunLoopRunSpecific + 356
        frame #15: 0x33e6ad48 CoreFoundation`CFRunLoopRunInMode + 104
        frame #16: 0x37a1d2ea GraphicsServices`GSEventRunModal + 74
        frame #17: 0x35d80300 UIKit`UIApplicationMain + 1120
        frame #18: 0x000faac8 MyApp`main(argc=1, argv=0x2fd0fd08) + 116 at main.m:16

BEARBEITEN:

Ich habe die neueste Xcode-Version 5.0.1 (5A2053).

Ich habe eine neue App von Grund auf erstellt und sie ohne Probleme ausgeführt. Dann habe ich einen Haltepunkt eingefügtViewController'sviewDidLoad und versuchte zu treten. Hier habe ich einen weiteren Absturz bekommen

* thread #1: tid = 0x2503, 0x3bb9d7c4 libobjc.A.dylib`objc_msgSendSuper2 + 4, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x4)
    frame #0: 0x3bb9d7c4 libobjc.A.dylib`objc_msgSendSuper2 + 4
    frame #1: 0x000b913a test`-[ViewController viewDidLoad](self=0x1cda5c70, _cmd=0x361bd5db) + 62 at ViewController.m:19
    frame #2: 0x35d4b594 UIKit`-[UIViewController loadViewIfRequired] + 364
    frame #3: 0x35d8bd78 UIKit`-[UIWindow addRootViewControllerViewIfPossible] + 64
    frame #4: 0x35d87aec UIKit`-[UIWindow _setHidden:forced:] + 364
    frame #5: 0x35dc91e8 UIKit`-[UIWindow makeKeyAndVisible] + 60
    frame #6: 0x35d8c83e UIKit`-[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1666
    frame #7: 0x35d8484a UIKit`-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 698
    frame #8: 0x35d2cc38 UIKit`-[UIApplication handleEvent:withNewEvent:] + 1004
    frame #9: 0x35d2c6cc UIKit`-[UIApplication sendEvent:] + 72
    frame #10: 0x35d2c11a UIKit`_UIApplicationHandleEvent + 6154
    frame #11: 0x37a1e5a2 GraphicsServices`_PurpleEventCallback + 590
    frame #12: 0x37a1e1d2 GraphicsServices`PurpleEventCallback + 34
    frame #13: 0x33ef9172 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
    frame #14: 0x33ef9116 CoreFoundation`__CFRunLoopDoSource1 + 138
    frame #15: 0x33ef7f98 CoreFoundation`__CFRunLoopRun + 1384
    frame #16: 0x33e6aebc CoreFoundation`CFRunLoopRunSpecific + 356
    frame #17: 0x33e6ad48 CoreFoundation`CFRunLoopRunInMode + 104
    frame #18: 0x35d83484 UIKit`-[UIApplication _run] + 668
    frame #19: 0x35d80300 UIKit`UIApplicationMain + 1120
    frame #20: 0x000b93bc test`main(argc=1, argv=0x2fd51d30) + 116 at main.m:16
    frame #21: 0x3bfd9b20 libdyld.dylib`start + 4

EDIT 2:

Greg Clayton in derXCode 5 stürzt ab, während die App auf dem Gerät ausgeführt wird schlägt folgendes vor

Others have seen this issue.
A few things to try:
1 - Reboot your device and try again. The theory is an old developer disk image is already mounted and won't be unmounted until you reboot.
2 - Re-install the OS on the device

Hopefully #1 fixes your issue. Others have done #2 and had their issue fixed, but hopefully it doesn't require an OS re-install.

Ich habe beides getan und es hat nicht geholfen.

Ich habe versucht, ein anderes Gerät zu verwenden, und es hat einen Unterschied gemacht. Es gibt immer noch Ausnahmen, wenn ich den iPod Touch mit iOS 6.1 verwende, das iPad mit iOS 7.0.2 jedoch einwandfrei funktioniert.

Das Problem hängt also anscheinend mit der auf dem Gerät installierten iOS-Version zusammen. Ich bin mir immer noch nicht sicher, was ich tun soll, um das Problem zu beheben.

EDIT 3:

Meine Command Line Tools-Version entspricht meiner Xcode-Version (ich habe eigentlich nur eine Version von Command Line Tools).

Das Problem hängt wahrscheinlich nicht mit dem zu debuggenden Code zusammen. Es stürzt mit der neu erstellten Single View-Anwendung von Xcode ab. Und es stürzt ab, wenn man über einfachen Code geht:

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

I Habe gefragt im Apple Developer Forum und bekam folgende Antwort von Jason Molenda:

Wir verfolgen einen Fehler, der sich nach dem anhört, was Sie hier sehen. Es ist ein subtiles Timing-Problem, das einen etwas langsameren Hostcomputer oder ein etwas langsameres Gerät erfordert. Dies wird in erster Linie bei iPhone 4 und ähnlichen Geräten mit iOS 7 der Fall sein. Bei Geräten mit iOS 6, iPhone 4 und iPhone 3GS ist die Wahrscheinlichkeit am größten. ... Dieses Problem tritt nur mit Xcode 5.0.1 auf.

Es scheint also ein Fehler in Xcode zu sein.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage