applicationDidFinishLaunching
is never called in the running of my app(tested on real device and simulator) despite the fact that applicationDidBecomeActive
is called. I can only find macOS solutions to this problem(here, here, and here)
In my info.plist
file, I have Main storyboard file base name set correctly. I have a Storyboard entry point hooked up to my initial view controller. The app launches and I see everything I should, but applicationDidFinishLaunching
is never called and I use that method to handle on-startup configuration and construction.
Based on the macOS posts, I tried dragging an object(yellow cube) into the IB hierarchy of the initial view controller, set its class as my app delegate class, and set it as the initial view controller's delegate. But applicationDidFinishLaunching
is still never called.
The method signature is correct (I know this is a common issue for Swift projects)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationDidFinishLaunching:(UIApplication *)application{
//code
}