Change initial view controller for target

468 Views Asked by At

I have a big Xcode iOS project.

This project contains multiple screens and starts on a debuging menu (View Controller).

What I want to do is to create a second target in my project.

With this target, I want to start to another ViewController.

Is there a way in the storyboard to set another initial view controller checkbox, but only for a target.

2

There are 2 best solutions below

0
On

i have not tried this. But i found a similar question on stackflow. This might help you : Is it possible to change 'is initial view controller' based upon Target?

0
On

I think you need to create different ViewController for each target selection. You can select target membership for different VCs

See below picture, it might help you to find out target selection in VC

enter image description here