简体   繁体   English

在Xcode 8中:如何为main.storyboard设置默认电话类型,并为模拟器设置活动方案

[英]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. 当我创建一个新项目时,当前在XCode 8.3 The default phone type for Main.Storyboard (lower left: View As ) is iPhone 7 . Main.Storyboard (左下方:“查看为”)的默认电话类型为iPhone 7 And the default phone type on active Scheme (top left on XCode main screen) is iPhone 7 Plus . 活动方案( XCode主屏幕左上方)上的默认电话类型是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. 因此,每次我创建一个新的XCode iOS项目时,它总是以我定义的相同类型开始。 (eg both iPhone SE ). (例如,两个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. 您需要对Iphone SE下的所有电话都执行此操作,以防您像我一样使用该电话。 Just keep uncheking until the Xcode selects the phone you want by itself. 保持松开状态,直到Xcode自行选择所需的电话为止。

As for the one in the storyboard, i am still trying to solve that one myself. 至于情节提要中的那个,我仍在尝试自己解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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