There is no nil! However, "fatal error: unexpectedly found nil while unwrapping an Optional value"

I don't know why it's an error. without nil

There is no nil in the situation where you have to develop explosive speed in the limited time of the laboratory The content of the error is fatal error: unexpectedly found nil while unwrapping an Optional value.

I wonder why I didn't use ??? nil and I didn't force unwrap it. I missed such a place (; ∀ ;)

Solution

The quickest way is to re-link the outlets again. How to check the association ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩ スクリーンショット 2020-12-14 20.10.11.png It's like an error that happens when the Outlet doesn't connect properly for some reason. スクリーンショット 2020-12-14 20.09.36.png

As a result, it is treated as if there is no UI such as Label/Button/TextField of UIKit. You will get an error warning with nil!

If you do it normally when linking UI with Outlet, it will never be nil.

In my case this was the solution! I hope it helps someone.

Recommended Posts

There is no nil! However, "fatal error: unexpectedly found nil while unwrapping an Optional value"
Fatal error: Unexpectedly found nil while unwrapping an Optional value
I got an error! * There is no interactive request template