简体   繁体   English

如何仅将iPhone / iPad应用程序更改为iPhone?

[英]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 familyiPhone ,你必须在目标中做同样的事情。 After that your app will be only for iPhone. 之后,您的应用程序将仅适用于iPhone。

Good Luck! 祝好运!

U can do this by going through the following steps. 你可以通过以下步骤来做到这一点。

  1. Select Edit Project settings from Projects . 从项目中选择编辑项目设置。
  2. Go to build settings. 转到构建设置。
  3. Select Targeted Device Family and Choose iPhone. 选择Targeted Device Family并选择iPhone。

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

  1. Project -> Edit Project Settings -> Build -> Targeted Device Family = iPhone 项目 - >编辑项目设置 - >构建 - >目标设备系列= iPhone

  2. 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中

  1. Project Navigator -> Select Project 项目导航器 - >选择项目
  2. General -> Deployment Info 一般 - >部署信息
  3. Devices -> iPhone 设备 - > iPhone

For Xcode 4.2: 对于Xcode 4.2:

  1. Select the project navigator (little folder icon in the top left), then select your project (the top most item) 选择项目导航器(左上角的小文件夹图标),然后选择您的项目(最顶层的项目)
  2. Move across to the next column, select the appropriate target 移动到下一列,选择适当的目标
  3. Move across to the next column, select the summary tab 移到下一列,选择摘要选项卡
  4. Select iphone from the devices dropdown. 从设备下拉列表中选择iphone。

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

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