简体   繁体   中英

“Upgrade current target for ipad” is grayed out (disabled)?

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.

我花了一段时间才意识到在菜单项启用之前必须选择一个目标。

I figured out that you have to select the target from the window on the left "Group & Files" for that "Upgrade Current target for ipad" to show.

替代文字

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

我有这个问题,因为我试图选择xib文件,而不是'Targets'文件夹下的项目。

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.

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.

我删除了“资源-iPad”组并且瞧 - “iPad的更新当前目标”已启用。

I was having the same problem, what I did to solve it was the normal thing: - select target in Groups and Files - (ie change it from 'iPhone/iPad' to 'iPhone').

and it was grayed out... - so I've cleaned the project (Build/Clean All targets)

It solved my problem, so I advise you to after make some changes that supposing would made it work, to clean the project afterwards!

Hope it can help someone.

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.

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.

Set you app to target iPhone in both the Project->Edit Project Settings: All Configurations and in the side menu, where you right click the target ->Get Info same type of menu.

To be able to click the "Upgrade to Ipad(...)" you have to click and select the target. Then it will work.

我通过右键单击目标 - >获取信息 - >构建,并将目标设备系列从iphone / ipad更改为iphone来解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM