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

后端 未结 10 1057
情歌与酒
情歌与酒 2020-11-29 02:42

I got this error:

Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

How can I solve this? The code works normally,

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 03:09

    I got this on WatchOS Sim. The issue persisted even after:

    • Deleting the app
    • Restarting Xcode
    • Deleting Derived Data

    ...and was finally fixed by "Erase all Content and Settings" in the simulator.

提交回复
热议问题