Sunday, May 2, 2010

Upgrade current target for iPad

A common problem I have found amongst people trying to convert their current iPhone executables to an iPad-specific format is that the "Upgrade Current Target for iPad" under the Project menu bar item is grayed out. The simple solution to this is to highlight specifically the executable of your project under the "Targets" title in the left sidebar of your project in XCode. Next, go back to Project > Upgrade Current Target for iPad. It should now be enabled.

Selecting this option has several effects on your project. First, in your overview options, you can now change your "Active Target" and "Active Executable" to iPad variants on the options currently selected. Second, the action should have made a copy of all the XIBs in your Resources directory and placed them into a new directory called Resources-iPad. Note, however, that any other resources will not be copied. Also note that the XIBs will not look pretty. They've been scaled to iPad size with no reservations.