将单独的 iPad/iPhone 目标转变为通用应用程序
当我开始通用应用程序时,我认为单一目标选项工作量太大,因此我选择了单独的目标。在制作应用程序的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我做了一个测试应用程序,并尝试删除 iPad 目标......但没有成功。然后,由于有两个 MainWindow.xib 文件,我意识到对“Resources-iPad”文件夹做了一些特殊的操作。我将其中的所有文件移至另一个组,并删除了“Resources-iPad”文件夹。这将启用“升级 iPad 的当前目标”选项。我再次运行它,但选择了通用应用程序,然后将“资源-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: