If you look at the crash log generated on your device, you will see:
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at <some address>
For a further description of the code parameter associated with the exception, you can refer to usr/include/mach/kern_return.h . It provides moderately readable constant names along with short comments related to constant values.
The fastest way to open this file is to enter the constant KERN_INVALID_ADDRESS in the Xcode file and select "Go to Definition" .;)
FYI: code=1 refers directly to KERN_INVALID_ADDRESS . The comments related to this constant say:
/* Specified address is not currently valid. */
source share