2016-05-29 90 views
2

我得到了這樣的事情:立即崩潰的XCode(雨燕2.2)

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

https://bugreport.apple.com使用屬性 – jtbandes

回答

0

我有同樣的錯誤,當我試圖在nil對象

for trip: Trip in tripArray { 
    NSLog("\(trip.hotel.name)") // hotel == nil 
}