5

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?

winsmith
  • 20,791
  • 9
  • 39
  • 49
  • 3
    Pull the latest version from your repository? You do have it in source control, don't you? – aehiilrs May 03 '10 at 20:27
  • 1
    I do, but exactly this commit is one of those where, instead of cleanly committing each change, I just did a whole bunch of stuff at once, and at this point, it seems easier to do it by hand than to look through all the changes. It's really stupid, I know, and I kinda learned my lesson about this. – winsmith May 03 '10 at 20:32
  • 1
    Hahaha, that makes sense. I have to admit that I'm guilty of that quite often too. – aehiilrs May 03 '10 at 20:35

3 Answers3

2

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
Community
  • 1
  • 1
winsmith
  • 20,791
  • 9
  • 39
  • 49
  • 1
    This worked for me but in my info plist I also had to change the NSMainNibFile~ipad (Main nib file base name (iPad)) to match the non-iPad version. – faroligo Nov 25 '10 at 14:55
  • 2
    There's misinformation here, I think. CPU architectures have a many-to-many relationship with device families. You shouldn't be touching your architecture settings at all when swapping between building for iPhone/iPad/both. All you need to change is the targeted device family. – Mark Amery Oct 06 '13 at 15:20
1

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.

Epsilon Prime
  • 4,576
  • 5
  • 31
  • 34
  • I'm tempted to accept this answer, but I tried it and it didn't really help me. Lots of diffs in the Xcodeproj-file and one diff in the plist. The Plist one doesn't make any difference, and the Xcodeproj seems to indicate it's one of the build settings, but I can't find which. – winsmith May 04 '10 at 08:52
0

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

casey
  • 1,118
  • 1
  • 13
  • 25