在Xcode中组织不同版本的应用程序 [英] Organizing Different Versions of App in Xcode

查看:76
本文介绍了在Xcode中组织不同版本的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个可以编辑图片的iPhone应用程式。最终,我想有一个小版本,允许用户只需编辑他们的图像,和一个大的版本,允许图像的社交网络。然后,我想为iPad开发一个版本。

I'm developing an iPhone app that can edit images. Ultimately, I want to have a small version that allows the user to simply edit their images, and a large version that allows social networking of the images. Then I'd like to develop a version of each for the iPad.

因为这是我第一次进入商业移动开发,我很困惑如何组织所有这些版本在Xcode。显然,将有在每个版本之间共享的文件重用。我想我的问题是,我如何去组织这些单独的项目,以最有效的方式,以便他们共享文件,所以当我编辑共享的特定文件,更改是对应用程序的每个版本?在XCode中是否有某种构造?

Being that this is my first foray into commercial mobile development, I'm confused about how to organize all these versions in Xcode. Obviously, there will be file reuse shared between each version. I guess my question is, how do I go about organizing these separate projects in the most efficient way so that they share files and so when I edit a particular file that is shared, the changes are made to each version of the application? Is there some kind of construct to follow in XCode?

有没有关于如何去做的链接或文献?

Are there any links or literature on how to go about doing this? (was not sure the correct term to search for it).

推荐答案

记住:如果你发现自己重复/复制某事,

Remember: If you find yourself repeating/duplicating something, suspect that you're doing it wrong.

在这种情况下,您的Xcode项目将有4个目标。此设置的基本目标布局如下:

Your Xcode project will have 4 targets in this scenario. The basic target layout for this setup looks like this:


  • 静态库(用于共享源文件)

  • 资源包(用于您的共享资源)

  • 应用完整版(通用)

  • >
  • A Static Library (for your shared source files)
  • A Resource Bundle (for your shared resources)
  • App-Full (Universal)
  • App-Lite (Universal)

应用程序链接到共享静态库,并复制资源包。

The apps link to the shared static library, and copy the resource bundle.

当然,应用程序的源代码/库/依赖关系会有所不同 - 它们在应用程序目标(或其他依赖关系)中。

Naturally, apps will have sources/libraries/dependencies which differ -- those go in the app target (or some other dependency).

根据您的背景:一个好的时间(最初和你去)和耐心,以找出这些依赖应如何组成,使用和维护。

Given your background: Plan on it taking a good amount of time (initially and as you go) and patience to figure out how these dependencies should be composed, used, and maintained.

这篇关于在Xcode中组织不同版本的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆