Every added View Controller adds a Launch Screen

I am still very new to Swift. Now I am learning about storyboards.

I added two View Controllers to the app by using the + icon in Xcode's Title Bar. Added one button to each of their screens, and then added a connectors (segues) between them, so that each button would navigate to the other screen. As soon as these connectors are added, each segue gets the error:

/Users/ ... /LaunchScreen.storyboard Launch screens may not have triggered segues.

So I figured at first that the first screen I added to the project by means of adding a View Controller must have been launch screen. So I remove the segues, I add two more screens in the same way, and make the same connections between these two new screens. The same errors appeared. It appears to me that Xcode considers every new screen added by dragging in a View Controller is a launch screen.

How do I make only the first screen the "Launch Screen"?

Answered by spflanze in 756634022

The problem is the View Controllers I added buttons to were added to the file: "LaunchScreen.storyboard". They needed instead to be added to the file: "Main.storyboard". Once this is done I was able to add segues without those errors appearing.

Accepted Answer

The problem is the View Controllers I added buttons to were added to the file: "LaunchScreen.storyboard". They needed instead to be added to the file: "Main.storyboard". Once this is done I was able to add segues without those errors appearing.

Every added View Controller adds a Launch Screen
 
 
Q