[英]How to change iPhone/iPad app to iPhone only?
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? 如何更改设置以使构建仅适用于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).
我实际上已经完成了应用程序的编码并准备提交它,所以希望它只是改变一些模糊的项目设置(而不是创建一个新项目和处理所有代码)。
Thanks St.Ov.! 谢谢St.Ov.!
You have to change the Targeted device family
. 您必须更改
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. 选择项目,然后选择
info-->Deployment--->Targeted device family
到iPhone
,你必须在目标中做同样的事情。 After that your app will be only for iPhone. 之后,您的应用程序将仅适用于iPhone。
Good Luck! 祝好运!
U can do this by going through the following steps. 你可以通过以下步骤来做到这一点。
That should do it. 应该这样做。
Have fun. 玩得开心。
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
Project -> Edit Project Settings -> Build -> Targeted Device Family = iPhone 项目 - >编辑项目设置 - >构建 - >目标设备系列= iPhone
Open "[project]-Info.plist" and change "Main nib file base name (iPad)" in "MainWindow_iPhone" 打开“[project] -Info.plist”并更改“MainWindow_iPhone”中的“主nib文件基本名称(iPad)”
I hope this helps :-) 我希望这有帮助 :-)
In XCode 9.4.1 在XCode 9.4.1中
For Xcode 4.2: 对于Xcode 4.2:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.