What goes into your .gitignore if you're using CocoaPods?

前端 未结 19 1088
南旧
南旧 2020-11-29 14:47

I\'ve been doing iOS development for a couple of months now and just learned of the promising CocoaPods library for dependency management.

I tried it out on a person

19条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 15:03

    Seems like a good way to structure this really would be to have the "Pods" directory as a git submodule / separate project, here's why.

    • Having pods in your project repo, when working with several developers, can cause VERY LARGE diffs in pull requests where it's nearly impossible to see the actual work that was changed by people (think several hundreds to thousands of files changed for libraries, and only a few changed in the actual project).

    • I see the issue of not committing anything to git, as the person owning the library could take it down at any time and you're essentially SOL, this also solves that.

提交回复
热议问题