22

I have created a new storyboard named "Start.storyboard", but when I change Main Interface to "Start" nothing happened, The app just started with default storyboard "Main.storyboard". I'm using Xcode 11.2.1 and iOS 13.2.3

first image second image

Also I have tried to change the rootViewController from (AppDelegate) didFinishLaunchingWithOptions as the code below:

    let sb = UIStoryboard(name: "Start", bundle: nil)
    let vc = sb.instantiateViewController(withIdentifier: "PhoneVC")
    self.window?.rootViewController = vc

but I got the same result, Main storyboard can't be changed.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Wafi AlShammari
  • 241
  • 2
  • 5

1 Answers1

59

Go to Info.plist and update Application Scene Manifest. Change the storyboard name in default configuration of Application Session Role. Also make sure one of your ViewController in storyboard is marked as is Initial View Controller

enter image description here

Bilal
  • 18,478
  • 8
  • 57
  • 72