hi zmclearan,I was searching and found your post. I have the same problem with you but i think i've solved this.You don't need to specify the Storyboard name in your UIApplicationSceneManifest section in the info.plist file. You can leave the UISceneConfigurations in UIApplicationSceneManifest section empty and specify a storyboard at runtime in the UIApplicationDelegate method. Just like this:UIApplicationSceneManifest
UIApplicationSupportsMultipleScenes
UISceneConfigurations
And in your UIApplicationDelegate:@available(iOS 13.0, *)
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
let config = UISceneConfiguration(name: "Default Configuration", sessionRole: .windowApplication)
config.sceneClass = UIWindowScene.self
config.delegateClass = SceneDelegate.self
if UIDevice.current.userInterfaceIdiom == .phone {
config.storyboard = UIStoryboard(name: "Main", bundle: nil)
} else {
config.storyboard = UIStoryboard(name: "Main_ipad", bundle: nil)
}
return config
}
Post
Replies
Boosts
Views
Activity
I have the same problem too. But I find that it won't happen if I run the App directly instead of lanuching from Xcode. I guess maybe it's because I run the Mac App and iOS Similutor App simultaneity on the same machine? No idea.