Xcode 8:如何更改目标设备系列
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39677524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8: how to change targeted device family
提问by SagittariusA
I developed an app for iOS 9/10 for iphone devices but my client would like to present and show it first running on an iPAD (always iOS 9/10). I have tried to compile and run it on my iPAD mini but the result is awful. I mean that the visible screen is much smaller than the one of the iPAD and moreover it is very slow and the graphics is busted. This is strange because I wrote many constraints and my app shows good on every kind of iphone (> 4S). Moreover the app completely crasheswhen I tap on a table cell row to show the second View Controller... Why do I see this on ipad? Shall I change the device target which at the beginning was set to iphone only? In Xcode 8, under project --> Build Settings --> Targeted Device Family I see 3 options: 1, 2 and 1,2. What do they mean?
我为 iphone 设备开发了一个适用于 iOS 9/10 的应用程序,但我的客户想展示并展示它首先在 iPAD(总是 iOS 9/10)上运行。我试图在我的 iPAD mini 上编译和运行它,但结果很糟糕。我的意思是可见屏幕比 iPAD 的屏幕小得多,而且速度非常慢,而且图形被破坏了。这很奇怪,因为我写了很多约束,我的应用程序在各种 iphone (> 4S) 上都显示良好。此外,当我点击表格单元格行以显示第二个视图控制器时,应用程序完全崩溃......为什么我会在 ipad 上看到这个?我应该更改最初设置为仅 iphone 的设备目标吗?在 Xcode 8 中,在项目 --> 构建设置 --> 目标设备系列下,我看到 3 个选项:1、2 和 1,2。他们的意思是什么?
回答by Jim
iPhone/iPod touch is 1, iPad is 2, and universal (iPhone and iPad) is 1,2.
iPhone/iPod touch 为 1,iPad 为 2,通用(iPhone 和 iPad)为 1,2。