我剛開始iOS開發,我試圖做一些操作與串遊樂場執行中止 - EXC_BAD_INSTRUCTION
var str = "Hello, playground"
let newTypeString = NSString(string: str) // here is the error
//this is NSString that i used to create newTypeString NSString(string: String)
這是我遇到的錯誤:
Playground execution aborted: error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
這兒還有沒有人還會遇到這個錯誤?
該代碼在Playground中運行時沒有問題。請更新與您的真正問題的問題,否則問題和答案是未來的讀者沒用。 –