Home  >  Q&A  >  body text

IOS 真机调试 报错 fatal error: unexpectedly found nil while unwrapping

我使用虚拟机正常的 真机报错

请问大神是什么原因,需要贴代码吗

阿神阿神2764 days ago776

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:28:31

    There is an optional type variable that is nil (nil in Swift has different meanings from nil in OC). Then forcing unwapping will cause this error.

    reply
    0
  • Cancelreply