I completed Chapter 3, the Dog Walk app. It works fine and I’ve created another app based on this that also works fine BUT, when I tried embedding it in a tab bar controller it failed. As a test, I downloaded the completed Dog Walk app that complements the book and I get the same identical error when I embed that in a Tab Bar Controller. Can anyone explain what I need to do to fix the problem as I’ve tried various options and help sources but I don’t yet have the experience to solve this myself.
The Dog Walk app fatal errors shows on line 62 of View Controller.swift, the line is:
let results = try managedContext.fetch(dogFetch)
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value)
I thought it is actually related to the code in AppDelegate as the root View Controller has changed - but I can’t actually solve it! Any help would be much appreciated!
[Post submit: I’ve just noticed my username shows as christ… my first name is Chris, last name starts with T!!!]