简体   繁体   English

“升级ipad的当前目标”显示为灰色(禁用)?

[英]“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. 我正在尝试使用这种方法创建一个通用的iPhone / iPad应用程序: http//www.enscand.com/roller/enscand/entry/ready_for_ipad ,这也在整个网络上进行了描述。 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. 我的问题是“升级iPad的当前目标”行显示为灰色,当我右键单击目标时根本不显示。

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. 我发现您必须从左侧“组和文件”窗口中选择要显示的“升级当前ipad目标”的目标。

替代文字

I found the solution. 我找到了解决方案。 After upgrading first target just rename Resources~iPad group in Groups&Files (eg to ResourcesFirstTarget~iPad). 升级第一个目标后,只需在Groups&Files中重命名Resources~iPad group(例如,到ResourcesFirstTarget~iPad)。 After that you can upgrade your other targets with "Upgrade Current Target For iPad". 之后,您可以使用“升级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. 我刚刚发现我的项目被设置为“iPhone”用于发布,但它仍然设置为“iPhone / iPad”进行调试。 After switching to "iPhone" for Debug also, the option to convert to a Universal app became available. 在切换到“iPhone”以进行调试之后,转换为通用应用程序的选项也可用。

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". 我不确定这是否是一个实际的解决方案但是我通过选择目标,转到“Project”并将Active Build Configuration设置为“Release”来解决了这个问题。 Update Current Target for IPad then became enabled. 更新IPad的当前目标然后启用。

我删除了“资源-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'). 我遇到了同样的问题,我解决它的方法是正常的: - 在组和文件中选择目标 - (即将它从'iPhone / iPad'更改为'iPhone')。

and it was grayed out... - so I've cleaned the project (Build/Clean All targets) 它变灰了 - 所以我清理了项目(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. 在项目信息中,看看“架构”,如果有多个条目,“ipad的升级目标”将显示为灰色。

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. 在项目 - >编辑项目设置:所有配置和侧面菜单中,将应用程序设置为目标iPhone,您可以在其中右键单击目标 - >获取信息相同类型的菜单。

To be able to click the "Upgrade to Ipad(...)" you have to click and select the target. 为了能够单击“升级到Ipad(...)”,您必须单击并选择目标。 Then it will work. 然后它会工作。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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