xcode storyboard – iOS MainViewController not instantiated


I’m updating an old app initially written in objective C back in 2012 using storyboards, around 2016 a last update was made where some parts in swift were added. Back then everything was working, but of course, serval SDK updates later some things need to be adjusted.

It’s time for a new update, but when the app starts the main view controller object is not instantiated:

  1. Have tried adding a break point in viewDidLoad -> but no hit
  2. Also added a constructor to my main view controller class and adding a BP here – but also no hit.

Since the project is old I suspect that something is missing in AppDelegate, have also tried creating a new objective C storyboard project. Can from this empty project see that besides the AppDelegate there is also a SceneDelegate now.

Have searched a lot on the topic “Main view controller not initialized” and “viewDidLoad not called” but haven’t found any solutions.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img