What does it mean: subodules => true mean in CocoaPod Podspec?

TL DR:

What does CocoaPodsit do if you install :submodules(part spec.source) how true?

Full version:

My previous project structure looked like

Project
Linked To --> Core static library (submodule added as a subproject)
            --> Linked To --> several dependent submodules (files added within subproject)

Now I'm moving on CocoaPodsto dependency management.

My new (transitional) structure looks like

Project
--> Depends on Core CocoaPod and few other CocoaPods
     --> Core depends on several open-source libraries
     --> Core also depends on a few submodules (in process of converting these)

I saw other projects (e.g. AFNetworking ) specify them sourceas follows:

s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => "2.1.0", :submodules => true }

What does CocoaPodsit do if you pass :submodulesas true, as in this example? Is this correct for this use case?

I can not find this document anywhere on CocoaPods.org .

+3
source share
2 answers

git , (. git Submodules ). , git, - :

git submodule init 
git submodule update

, git (, git git, - , , git )

, cocoapods git, , 2 , , .

FYI inits , - , , cocoapods

git submodule update --init --recursive

0.12.0: (. changelog)

, !

0

, git , , URL- git , . :submodules => true .

AFNetworking , git, , .

, .

0

All Articles