简体   繁体   中英

How can I revert my Universal app back to iPhone only?

In a silly mistake, I ran the "Upgrade current Target for iPad" assistant in Xcode. I'd like to target the iPad some time with my app, but right now, I don't have the time and just want to ship it. Is there an easy way to remove the iPad specific changes from my app?

Specifically, what I'm after is, I want to be able to run the app in the little "iPhone" window on the iPad (the one that lets you blow up the size of the app by pixel doubling). Right now, my view just hangs in there somewhere and looks weird.

Any help?

I found help in this question: Submit an universal app as iPad only app to Apple

The solution is

  • Open the Target configuration: Project -> Edit Active Target
  • In build settings, set
    • Architectures: Standard (armv6(
    • Build active architecture only: YES
    • Targeted Device Family: iPhone

我不知道如何随意做,但你可以创建另一个项目(然后制作副本)然后运行相同的“升级当前目标iPad”并寻找差异。

Does Upgrade for iPad create a new snapshot. I thought mine created one before I did it automatically, but I'm not positive. If so, just revert back to the snapshot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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