10

xcode project under version control. multiple developers work on it. when adding 3rd party frameworks i prefere to keep them outside the git repo.

so whats the best practice when it comes to adding a framework (i.e. facebookSDK) to the project?

currently frameworks are "referenced". this way i have a relative path pointing outside my git repo in project.pbxproj...fail.

pretty confident that the answer is straight forward/simple and actually easy to find in the web, but it seems like i'm asking google the wrong questions...

thx.

4

1 回答 1

6

AFAIK,基本上有两种方法可以绝对确定给定的提交使用已知版本的框架。

  1. 将构建的框架提交到您的存储库中。这是常用的方法。
  2. 使用子模块来引用包含框架构建的存储库。您可能必须自己创建和维护这样的存储库。

选项 2 的好处是使您的存储库保持较小,但更麻烦,特别是因为子模块很难使用。

于 2013-06-10T21:41:12.503 回答