我有这样的事情:
specialized _ContiguousArrayBuffer._checkValidSubscript(Int) -> () [inlined].
当我尝试调试我的代码,打印我的数组或我投入的项目的描述时,我的XCode关闭。
崩溃详情:
System Integrity Protection: enabled
Crashed Thread: 24 <DBGLLDBSessionThread (pid=666)> Dispatch queue: DVTInvalidationPreventionQueue
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
你有什么想法吗?
答案 0 :(得分:0)
当我尝试在nil
对象
for trip: Trip in tripArray {
NSLog("\(trip.hotel.name)") // hotel == nil
}