xcode 如何仅将 iPhone/iPad 应用程序更改为 iPhone?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5104157/
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
How to change iPhone/iPad app to iPhone only?
提问by a1phanumeric
I've been a bit stupid and built my app as being targeted for both iPhone and iPad, whereas it should really just be for the iPhone.
我有点愚蠢,将我的应用程序构建为针对 iPhone 和 iPad,而它实际上应该只针对 iPhone。
How do I change the settings so that the build is only for the iPhone? I've actually finished coding the app and ready to submit it, so hopefully it's just a case of changing some obscure project settings (as opposed to creating a new project and coping all the code over).
如何更改设置以便构建仅适用于 iPhone?我实际上已经完成了应用程序的编码并准备提交它,所以希望这只是更改一些晦涩的项目设置的情况(而不是创建一个新项目并处理所有代码)。
Thanks St.Ov.!
谢谢圣奥夫!
采纳答案by Sudhanshu
You have to change the Targeted device family
. Select the project, then info-->Deployment--->Targeted device family
to iPhone
only and you have to do the same thing in targets. After that your app will be only for iPhone.
您必须更改Targeted device family
. 选择项目,然后info-->Deployment--->Targeted device family
to iPhone
only 并且你必须在目标中做同样的事情。之后,您的应用程序将仅适用于 iPhone。
Good Luck!
祝你好运!
回答by visakh7
U can do this by going through the following steps.
你可以通过以下步骤来做到这一点。
- Select Edit Project settings from Projects .
- Go to build settings.
- Select Targeted Device Family and Choose iPhone.
- 从项目中选择编辑项目设置。
- 转到构建设置。
- 选择目标设备系列并选择 iPhone。
That should do it.
那应该这样做。
Have fun.
玩得开心。
回答by Jesus
For Xcode 5.1.1:
对于 Xcode 5.1.1:
Select your project and then go to:
选择您的项目,然后转到:
General->Deployment Info -> Devices
常规->部署信息->设备
and then select just iPhone
然后只选择 iPhone
回答by javatogo
In XCode 9.4.1
在 XCode 9.4.1 中
- Project Navigator -> Select Project
- General -> Deployment Info
- Devices -> iPhone
- 项目导航器 -> 选择项目
- 常规 -> 部署信息
- 设备 -> iPhone
回答by Manni
Project -> Edit Project Settings -> Build -> Targeted Device Family = iPhone
Open "[project]-Info.plist" and change "Main nib file base name (iPad)" in "MainWindow_iPhone"
项目 -> 编辑项目设置 -> 构建 -> 目标设备系列 = iPhone
打开“[project]-Info.plist”并在“MainWindow_iPhone”中更改“Main nib file base name (iPad)”
I hope this helps :-)
我希望这有帮助 :-)
回答by bw1024
For Xcode 4.2:
对于 Xcode 4.2:
- Select the project navigator (little folder icon in the top left), then select your project (the top most item)
- Move across to the next column, select the appropriate target
- Move across to the next column, select the summary tab
- Select iphone from the devices dropdown.
- 选择项目导航器(左上角的小文件夹图标),然后选择您的项目(最上面的项目)
- 移动到下一列,选择适当的目标
- 移动到下一列,选择摘要选项卡
- 从设备下拉列表中选择 iphone。