I'm trying to create a CocoaPod with nested git submodules. I can create the pod, however, I can't fully install it.
When I run pod install --verbose
I can see that git submodule update --init
is being run instead of git submodule update --init --recursive
which doesn't pull the nested submodule.
Does CocoaPods support nested submodules, or no? I have scoured the web for potential leads, but can't find anything!
I should also mention that I that lint passes with pod lib lint
but not pod spec lint.
pod spec lint
complains that it can't find the header file in the nested submodule. I'm not sure if this is related to the problem above.
(Also note that this particular Pod I'm working on is only a proof of concept. I'll be creating a much more complex Pod that depends on socket.IO-objc. Unfortunately socket.IO-objc is not available as a Pod, and depends on SocketRocket as a submodule.)
Here's 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" => "[email protected]" }
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's my Podfile:
pod "DebugTools", :git => "https://github.com/robertcrabtree/DebugTools.git", :submodules => true