错误“Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)”是什么意思?

what does Error “Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)” mean?

我尝试在模拟器中构建时出现错误

dyld_sim`dyld_fatal_error:
    0x101799000 <+0>: int3   
->  0x101799001 <+1>: nop    

说明有导致崩溃的指令,比如强行解包不存在的东西,得到的值为nil。

Take a look through your code and see if there are any situations where you force unwrap something that does not necessarily exist.