将单独的 iPad/iPhone 目标转变为通用应用程序

发布于 2024-08-27 23:01:44 字数 161 浏览 5 评论 0原文

当我开始通用应用程序时,我认为单一目标选项工作量太大,因此我选择了单独的目标。在制作应用程序的 iPad 部分的过程中,我意识到制作通用应用程序会更容易。问题是,我无法使用 Apple 的选项将我的 iPhone 目标转换为通用,因为已经有单独的目标。是否有解决方法可以让我将 iPhone 目标升级到通用?

When I started my universal application, I thought the one target option would be too much work, so i opted for separate targets. I realized halfway through making the iPad portion of the app, that making a universal application would be easier. The issue is, I can't use Apple's option to convert my iPhone target to Universal, as there are already separate targets. Is there a workaround that allows me to upgrade my iPhone target to Universal?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抚你发端 2024-09-03 23:01:44

好吧,我做了一个测试应用程序,并尝试删除 iPad 目标......但没有成功。然后,由于有两个 MainWindow.xib 文件,我意识到对“Resources-iPad”文件夹做了一些特殊的操作。我将其中的所有文件移至另一个组,并删除了“Resources-iPad”文件夹。这将启用“升级 iPad 的当前目标”选项。我再次运行它,但选择了通用应用程序,然后将“资源-iPad”的先前居民移回了原来的家。

回顾一下:

  1. 将“Resources-iPad”组中的文件移动到其他位置
  2. 删除“Resources-iPad”组和 iPad 目标
  3. 选择 iPhone 目标并转到项目=>; 升级 iPad 的当前目标
  4. 选择通用应用程序
  5. 将 iPad 资源移回到新的“Resources-iPad”文件夹中

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 their original home.

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文