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

标签 ios swift xcode7

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

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.

关于ios - 错误 “Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)” 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37978666/

相关文章:

swift - : and = 之间的差异

xcode - 在 xcode 中选择从父类(super class)到实现/覆盖的方法

Xcode7 UIAlertController 获取用户数据

iphone - 崩溃 iPad 照片选择器

ios - 在单个 View 中一次缩放和平移两个图像

ios - 无法在 iOS 中为 UITableView 设置辅助功能标识符

swift - TouchesMoved swift 滞后

ios - 是否可以在收到推送通知后对其进行修改?

swift - 正则表达式:匹配 20 个字母和 1 个可选破折号

swift - 从 NSDictionary/Dictionary 中删除 value == -1.0 的所有项目