iOS - iPhone/iPad 版本控制

发布于 2024-10-10 03:25:43 字数 193 浏览 0 评论 0原文

我目前有一个 iPhone 应用程序,我想制作一个 iPad 版本。但我不希望它成为“通用”。我想以与 iPhone 版本不同的价格出售 ipad 版本。

我的问题 - 在 Xcode 中解决这个问题的最佳方法是什么?我是否只需复制该项目,然后维护两个单独的项目,然后从新项目构建 ipad?似乎这是唯一的方法,但对两者进行更新会很痛苦。建议?建议?谢谢。

I currently have an iphone app that I want to make an ipad version of. I don't want it to be "universal" though. I want to sell the ipad version for a different price than the iphone version.

My question - what is the best way to go about this in Xcode? Do I just copy the project and then maintain two separate projects, and do the ipad build from the new project? Seems this is the only way to go, but will be a pain to make updates to both. Suggestions? Advice? Thanks.

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

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

发布评论

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

评论(3

揽清风入怀 2024-10-17 03:25:43

与使应用程序通用的方式几乎相同,您可以制作单独的 iPad 版本。 免责声明:我之前实际上没有这样做过,我走了通用路线。现在您需要做的是首先右键单击您的目标,然后单击“升级 iPad 的当前目标...”,然后单击“两个特定于设备的应用程序”和“确定”。祝你好运。

In almost the same way that you would make an app universal, you can make a separate iPad version. Disclaimer: I haven't actually done this before, I went the universal route. Now what you need to do is first right click on your target and click "Upgrade Current Target for iPad..." Then click "Two device-specific applications" and "OK." Good luck.

凤舞天涯 2024-10-17 03:25:43

我的应用程序也经历过类似的事情。我有一个可用的 iPhone 版本的应用程序,我想将其移植到 iPad 上。我创建了一个特定于 iPad 的项目,并向其中添加了可共享的代码。对我来说幸运的是,我对数据和 UI 代码进行了相当清晰的分离,并且能够共享大部分数据代码;在新的 iPad 项目中,我唯一需要编写新代码的是 UI 内容。

我完全愿意改变我处理分离的方式。理论上,您似乎可以指定不同的捆绑包标识符并打开/关闭设置以启用 iPad 或 iPhone 版本。但我决定将我的 iPad/iPhone 项目分开会更简单。

希望这有帮助!

I went through something similar with my apps. I had a working iPhone version of an app that I wanted to port to the iPad. I created an iPad-specific project and added the share-able code to this. Fortunately for me, I had a pretty clean separation of the data and UI code and was able to share most of the data code; in the new iPad project, the only thing I had to write new code for was the UI stuff.

I'm totally open to changing the way I handle this separation. In theory, it would seem that you could specify different bundle identifiers and turn on/off settings to enable iPad or iPhone versions. But I had decided that it'd just be simpler to separate out my iPad/iPhone projects.

Hope this helps!

晚雾 2024-10-17 03:25:43

不要使用两个项目,而是将 iPad 应用程序目标添加到您的 iPhone 项目中。这样,每当您更改共享代码时,两个应用程序的代码都会更新。

Instead of using two projects, add an iPad app target to your iPhone project. This way, whenever you change shared code, it is updated for both apps.

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