winsmith
winsmith

Reputation: 21572

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?

Upvotes: 6

Views: 3073

Answers (3)

casey
casey

Reputation: 1124

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

Upvotes: 0

winsmith
winsmith

Reputation: 21572

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

Upvotes: 2

Epsilon Prime
Epsilon Prime

Reputation: 4586

I don't know how to do it offhand, but you could create another project (then make a copy) and then run the same "upgrade current target for iPad" and look for differences.

Upvotes: 1

Related Questions