An EXC_BREAKPOINT
generally indicates a precondition failure, where a function verifies that the incoming arguments to the function are sane or non-nil, or other surrounding context like threading considerations, are viable.
You're seeing the main frame highlighted because that's the last frame in your code base for the specific call stack. You should inspect the backtrace in the debugger to see what other code is involved. Alternatively, you can detach the debugger at this point so the system generates the standard crash report. In either case, by looking at what other code is involved in the call stack, you can analyze how your code is related (even if your related code is not in the backtrace) to understand the source of the crash.