CoreFoundation Trap error "Thread1:EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)" CoreFoundation Trap error "Thread1:EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)" ios ios

CoreFoundation Trap error "Thread1:EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)"


I had this error on line like that

NSLog(@"%@: tutorial view retain count = %ld",self.class,CFGetRetainCount(CFTypeRef(tutorialView)));

where tutorialView equals nil


Restart your iOS device - that worked for me. You can also try restarting Xcode.

I was getting the crash where I had a breakpoint set, but I had breakpoints turned off. I think that there are glitches in how Xcode handles breakpoints that can cause this issue even if there aren't issues in the code itself.