如何将通用 iOS 应用程序转换为独立的 iPhone 应用程序?
我开始构建一个通用应用程序,但结果发现该设计在 iPad 上运行不佳,因此我决定将其制作为独立的 iPhone 应用程序。我的意思是,我希望应用程序商店将我的应用程序视为 iPhone 应用程序,而不是通用应用程序。我正要创建一个新项目并将现有的 iPhone 代码移至其中,这是一项繁重的工作,因为我有现有的核心数据存储和其他需要一些人工的文件。
这是我应该采取的路线吗?还是可以轻松地将我现有的通用应用程序转换为独立的 iPhone 应用程序?如果转换起来更容易,我需要做什么?
我正在探索项目的“构建”设置(我不知道其中大多数的含义),但我看到了“目标设备系列”设置。我是否足够幸运,我可以简单地将其设置为“iPhone”,然后就结束了?
预先感谢您的帮助!我现在要继续研究这个问题...
更新:我发现我所需要做的就是将“目标设备系列”构建设置设置为“iPhone”。到目前为止似乎运行良好。
I started building a Universal app and it turned out the design doesn't work well with the iPad, so I've decided to make it a stand-alone iPhone app instead. By that, I mean I'd like the app store to see my app as an iPhone app, not a Universal app. I was just about to create a new project and move my existing iPhone code over to it and it's a ton of work because I had existing Core Data stores and other files that require some labor.
Is that the route I should take or is it easy to convert my existing Universal app to a stand alone iPhone app? If it's easier to convert it, what do I need to do?
I was exploring the Build settings of my project (I don't know what most of them mean), but I see the "Targeted Device Family" setting. Am I fortunate enough that I could simply set this to "iPhone" and that's the end of it?
Thanks in advance for your help! I'm going to continue looking into this now...
UPDATE: I found that all I needed to do was set the "Targeted Device Family" build setting to "iPhone". Seems to be working fine so far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信最终会在 Info.plist 中设置 UIDeviceFamily 键,这应该是 App Store 所查看的内容。您可能仍然有大量 iPad 资源,但我不会对此太担心。
I believe that ends up setting the UIDeviceFamily key in Info.plist, which should be what the App Store looks at. You might still have a bunch of iPad resources floating around, but I wouldn't worry too much about that.