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
git git-submodules cocoapods
Rob
source share