简体   繁体   English

在Xcode 4.2上将iOS 5 App更新为Universal?

[英]Updating iOS 5 App to Universal on Xcode 4.2?

i am currently developing an App based on iOS 5 on Xcode 4.2 . 我目前正在Xcode 4.2上基于iOS 5开发一个应用程序。 which now i have to convert it into a Universal app . 现在我必须将其转换为通用应用程序 In Xcode i didn't find Update Current Target to iPad but i came to know from stackoverflow that i need to Duplicate the Target and select option Transition to iPad . 在Xcode中,我没有找到“将当前目标更新到iPad”,但是从stackoverflow得知我需要复制目标并选择“ 过渡到iPad”选项。 which i ended up doing. 我最终做了。 But now i have two targets and the new target has current device family set to iPad only and not iPhone/iPad. 但是现在我有两个目标,新目标将当前设备系列设置为仅iPad,而不是iPhone / iPad。 Does this means i have two different builds ie 2 different apps and not one Universal App. 这是否意味着我有两个不同的版本,即2个不同的应用程序而不是一个Universal App。

Should i just choose current device family to iPhone/iPad in build settings instead of duplicating the target or does the two target still implies one Universal App?? 我应该只在构建设置中选择iPhone / iPad的 当前设备系列 ,而不是复制目标,还是两个目标仍然意味着一个通用应用程序?

You don't need to create a new target for making a universal app. 您无需为制作通用应用程序创建新目标。 Just delete the new target and then for your original target, go to the target/summary tab and in the Devices dropdown select universal instead of iPhone and it will do the transition for you. 只需删除新目标,然后对于原始目标,请转到目标/摘要选项卡,然后在“设备”下拉列表中选择“通用”而不是“ iPhone”,它将为您完成转换。

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

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