iOS: Universal App - Release as iPhone only

时间秒杀一切 提交于 2019-12-03 15:04:09

问题


A customer is interested in releasing a universal app. However, the first release will contain only the iPhone version, the second release will contain both versions.

I found a few links where ppl figured out how to make this work in the simulation environment. However, i could not find claims about apps that finally were released to the AppStore successfully. I need verification of this.

Do you have links of people claiming to have universal apps released for iphone only or did you do it yourself?


回答1:


It's not possible to only release the iPhone version via iTunes Connect, but you can set the Target Device to iPhone-only for the first version and it'll only be released for iPhone/iPod touch.




回答2:


In the application's Build Settings change the Targeted Device Family to iPhone, instead of iPhone/iPad.

In the latest xcode you can do this by summary screen too.

Thanks


回答3:


You need to make two changes. First, Set the Target Device Family back to iPhone. Second, in the info plist remove the Main nib file base name (iPad) entry. If you don't do that last step it will run as though it was an iPhone app (small view port with 2x button) but your iPad main window and delegate will be triggered.

Here is a more details post with some images for illustration: http://www.fullboarcreative.com/labs/2012/04/20/tip-going-from-a-universal-to-single-device-app/



来源:https://stackoverflow.com/questions/5868034/ios-universal-app-release-as-iphone-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!