Git Submodules vs Cocoapods

What are the advantages / disadvantages of using Cocoapods vs Git Submodules? I know that there are several differences, but I would like to know more about the advantages and disadvantages of using any system. Thank!

+4
source share
1 answer

Git submodules should not be used for dependency management. I suggest you use Cocoapods.

Git Submodule

Pros

  • In principle, one insert to run it, there is no need for additional files / configuration.

against

  • You cannot specify target directories, you always need to clone the entire repository.
  • .
  • .

Cocoapods

Pros

  • .
  • /.
  • , Podfile Podfile.lock. .

  • Spec .
  • .

Cocoapods .

+4

Source: https://habr.com/ru/post/1539322/


All Articles