# Checklists: Fatal Error Unexpectedly found nil when unwrapping an Optional value

**URL:** <https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126>\
**Category:** iOS Apprentice\
**Created:** [January 1, 2018, 2:53am UTC](https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126 "2018-01-01T02:53:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurtrmueller](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kurtrmueller/32/73747_2.png) [@kurtrmueller](https://forums.kodeco.com/u/kurtrmueller)\
**Post date:** [January 1, 2018, 2:53am UTC](https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126/1 "2018-01-01T02:53:20Z")

</div>

On page 235 of the latest version of the iOS apprentice, the following line:

let label = cell.viewWithTag(1000) as! UILabel

Causes a runtime error after a successful build.

“Fatal error: Unexpectedly found nil while unwrapping an Optional Value”

Any pointers on how to go about fixing this error? Thanks for any and all help.

Kurt

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [January 1, 2018, 3:12am UTC](https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126/2 "2018-01-01T03:12:55Z")

</div>

> [@kurtrmueller](#):
>
> “Fatal error: Unexpectedly found nil while unwrapping an Optional Value”

This usually happens either because you didn’t set the correct tag (1000) for the label, or you set the tag on the wrong item (the table view cell instead of the label). Please check for both of these issues and you should hopefully be able to fix the crash.

---

<div class="post-metadata">

**Author:** ![kurtrmueller](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kurtrmueller/32/73747_2.png) [@kurtrmueller](https://forums.kodeco.com/u/kurtrmueller)\
**Post date:** [January 1, 2018, 5:02am UTC](https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126/3 "2018-01-01T05:02:08Z")

</div>

That was exactly the problem. I guess I should read the instructions more carefully next time, whoops.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [June 16, 2018, 6:53pm UTC](https://forums.kodeco.com/t/checklists-fatal-error-unexpectedly-found-nil-when-unwrapping-an-optional-value/38126/4 "2018-06-16T18:53:20Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
