简体   繁体   中英

In Xcode 8: How to set default phone type for main.storyboard and active scheme for simulator

Currently in XCode 8.3 whenever I created a new project. The default phone type for Main.Storyboard (lower left: View As ) is iPhone 7 . And the default phone type on active Scheme (top left on XCode main screen) is iPhone 7 Plus .

Is there a way to configure default phone type for both. So every time I create a new XCode iOS project, it always started with the same type I defined. (eg both iPhone SE ).

I've searched for information related to this but no avail.

To remove the one on the top left:

Product > Destination > Add Additinal Simulators Then choose simulators in "Devices / Simulators"

And select each phone you don't want and uncheck "Show as run destination"

You need to do this for all phones under Iphone SE in case you want to use that one like i did. Just keep uncheking until the Xcode selects the phone you want by itself.

As for the one in the storyboard, i am still trying to solve that one myself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM