views:

1092

answers:

1

I, when I got my hands on the iPad SDK Beta, thought the universal binary would be to much work, so i opted for the separate targets. I realized halfway through making the iPad portion of my app, that making a universal application would be easy as pie. The issue is, I can't use Apple's option to convert my iPhone Target to Universal. The only thing that I would need to do in the Info.plist of the universal application would be to set a different MainWindow. How could I approach the problem? Is there a workaround to get Apple's way to work (maybe by deleting the existing iPad Target)? Is there a good way to do it manually?

If any of you have experience on this subject, help would be much appreciated

Thanks, Conrad Kramer

+3  A: 

Okay, I made a test app, and tried deleting the iPad target...didn't work. Then, since there were two MainWindow.xib files, I realized that something special was done to the "Resources-iPad" folder. I moved all of the files in it to another group, and deleted the "Resources-iPad" folder. This enables the "Upgrade Current Target for iPad" selection. I ran it again, but picked Universal Application, and then moved the previous inhabitants of the "Resources-iPad" back to its original home. A few tweaks to the Info.plist and BOOM its now a Universal Application.

Its sounds hard, but its not.

To recap:

  1. Move Files in "Resources-iPad" group to somewhere else
  2. Delete "Resources-iPad" group and the iPad target
  3. Select iPhone target and go to Project=>Upgrade Current Target for iPad
  4. Pick Universal Application
  5. Move iPad Resources back into the new "Resources-iPad" folder
  6. Edit Info.plist to work point to the iPad MainWindow.xib

It is a reliable fix, and i'm surprised it was as easy as that.

ckrames1234