简体   繁体   English

Xcode项目管理:将iPad(Storyboards,iOS 5)添加到与iOS 4兼容的iPhone项目中

[英]Xcode project management: adding a iPad (Storyboards,iOS 5) to a iPhone project compatible with iOS 4

I have a mature iPhone project which needs to stay compatible with iOS 4. I would like to add an iPad version that uses Storyboards. 我有一个成熟的iPhone项目,需要与iOS 4保持兼容。我想添加一个使用Storyboard的iPad版本。 Whats the best pratice to organize such a project? 组织这样一个项目的最佳实践是什么? I don't think it's possible to do this as an Universal project, because of the different iOS versions. 由于iOS版本不同,我认为不可能将其作为通用项目来实现。

Of course I could just generate a second project for the iPad version, but then I would have to sync the changes manually between the versions. 当然,我可以为iPad版本生成第二个项目,但是随后我必须手动在两个版本之间同步更改。

Would it be a good idea to solve this with a Xcode workspace? 用Xcode工作区解决这个问题是一个好主意吗? If I got it right, it's possible to have several projects in a workspace. 如果我做对了,则可能在一个工作区中有多个项目。

Thanks for your thoughts. 感谢您的想法。

What I'd do is create one workspace with three targets: two apps and one library. 我要做的是创建一个具有三个目标的工作区:两个应用程序和一个库。 Then you put the shared code in the library target that you include in both app targets. 然后,将共享代码放入两个应用程序目标中都包含的库目标中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM