IOS real machine debugging reported an error fatalerror: unexpected found nilwhile unwrapping

  ios, question

I use the normal real machine of the virtual machine to report an error.


May I ask what is the reason for the great god, do you need to paste the code?

One optional type variable is nil (nil nil(Swift and NIL in OC have different meanings). And then forced unwapping, will cause this kind of mistake.