views:

2439

answers:

13

I'm trying to create a universal iPhone/iPad app using this method: http://www.enscand.com/roller/enscand/entry/ready_for_ipad which is also described all over the web. My problem is that the "Upgrade current target for iPad" line is grayed out and doesn't appear at all when I right click the target.

I'm working on an app that I inherited from someone, and have tried this with an app that I wrote entirely myself (no problems on that one). And yes, I'm sure that I'm selecting the target.

Just wondering if anyone has any insight into what checks are being run that would cause this option to be unavailable.

+5  A: 

It took me a while to realize that you have to have a target selected before the menu item will become enabled.

Paul Lynch
Thanks but yes, I've selected the target. I'm able to get it to work on another app.
Eric
Ian1971
A: 

Paull.. thanks so much that worked

zcoder
A: 

In my case it still doesn't work. Note that one target (not the current one) of my project was previously updated to universal app. It is the second one (the LITE app) which I can't upgrade

A: 

That option for me is also grayed out, even though I have the Target selected. Can;t figure it out.

I tried setting the base OS to 3.1.3 and 3.2 and nothing. Also tried setting Project Compatibility to Xcode 3.2, still nothing.

I don't understand this since it did work on another one of my apps.

RyeMAC3
A: 

I have the same problem as RyeMAC3 described. Any solutions?

Petr
+1  A: 

I found the solution. After upgrading first target just rename Resources~iPad group in Groups&Files (e.g. to ResourcesFirstTarget~iPad). After that you can upgrade your other targets with "Upgrade Current Target For iPad".

Petr
+3  A: 

Targeted Device Family should be set to 'Iphone' for this option to be available, otherwise Xcode thinks its already targets iPad. (i.e change it from 'iPhone/iPad' to 'iPhone').

black2842
Just tried this and didn't see a change for me - thanks though :/
Eric
A: 

I've found the same problem but can upgrade if I right click the target rather than using the menu item.

Further more I've just realised that the menu item does become ungrayed out if you select the target in Groups & Files not in the drop down at the top.

Ian1971
+1  A: 

I just found that my project was set to "iPhone" for Distribution, but it was still set to "iPhone/iPad" for Debug. After switching to "iPhone" for Debug also, the option to convert to a Universal app became available.

Cole
A: 

I don't know if this post is still active. In project info, take a look at "Architecture", if there's more than one entry, the "Upgrade target for ipad" is greyed.

Leonardo
Thanks for the comment Leonardo. In the project info I have "Standard (armv6 armv7)" as the value for "Architectures", "Build Active Architecture Only" unchecked and "armv6 armv7" for "Valid Architectures". Is this the place you're talking about? I tried changing a few of these values around but still didn't see a change to "Upgrade target for iPad"
Eric
A: 

I had this problem because I was trying to do it with the xib file selected, not the item under the the 'Targets' folder.

Robert Smith
A: 

Im not sure if this is an actual solution but I solved this problem by selecting the target, going to "Project" and setting the Active Build Configuration to "Release". Update Current Target for IPad then became enabled.

rich
A: 

I deleted the "Resources-iPad" group and voila - the "Update Current Target for iPad" became enabled.

Dipali
Didn't work for me unfortunately - thanks for the answer though!
Eric