How to create CocoaPod with nested git submodules?

I am trying to create CocoaPod with nested git submodules. I can create a module, but I cannot fully install it.

When I run pod install --verbose , I see that git submodule update --init is executed instead of git submodule update --init --recursive , which does not pull out the nested submodule.

Does CocoaPods support nested submodules or not? I searched the Internet for potential leads, but I can’t find anything!

I should also mention that I, which lint runs with pod lib lint , but not pod spec lint. pod spec lint , complains that it cannot find the header file in the nested submodule. I am not sure if this is due to the problem above.

(Also note that this particular Pod I'm working on is just a proof of concept. I will create a much more complex Pod that depends on socket.IO-objc. Unfortunately, socket.IO-objc is not available as a Pod, and depends from SocketRocket as a submodule.)

Here is my PodSpec:

 Pod::Spec.new do |s| s.name = "DebugTools" s.version = "0.1.0" s.summary = "Awesome tools for debugging iOS apps." s.homepage = "https://github.com/robertcrabtree/DebugTools" s.license = 'MIT' s.author = { "Robert Crabtree" => "me@gmail.com" } s.source = { :git => "https://github.com/robertcrabtree/DebugTools.git", :tag => s.version.to_s, :submodules => true } s.platform = :ios, '7.0' s.requires_arc = true s.source_files = 'Pod/Classes/**/*', 'Pod/Submodules/LogMaster/LogMaster/*.{h,m}', 'Pod/Submodules/LogMaster/LogMaster/LogCore/*.h' s.resource_bundles = { 'DebugTools' => ['Pod/Assets/*.png'] } end 

Here is my subfile:

 pod "DebugTools", :git => "https://github.com/robertcrabtree/DebugTools.git", :submodules => true 
+8
git git-submodules cocoapods
source share

No one has answered this question yet.

See related questions:

20142
How do I undo the last local commits in Git?
15981
How to delete a Git branch locally and remotely?
11347
What is the difference between 'git pull' and 'git fetch'?
8423
How do I undo 'git add' before committing?
7919
How to rename a local Git branch?
7159
How do I revert a Git repository to a previous commit?
6475
How to remove local (untracked) files from the current Git working tree
6334
How to check remote git branch?
4491
How to discard unspecified changes in Git?
3258
How to remove a submodule?

All Articles