我有一个带有嵌套库的项目,并且我试图将其包含为Pod的依赖项。我的podspec如下:
Pod::Spec.new do |s|
s.name = "MyPod"
s.version = "0.0.1"
s.summary = "Description here."
...
s.platform = :ios
s.ios.deployment_target = "10.0"
s.source = { :git => [valid url], :tag => "#{s.version}" }
s.source_files = "MyPod/Source/*.swift"
s.dependency 'Library'
s.subspec 'Library' do |sp|
sp.source_files = 'StaticLib/*.swift', 'StaticLib/**/*.swift'
end
end
我基本上想从子库中编译子库,并将其链接到我的pod上以供内部使用。我不能依赖我的子规范。我在这里做什么错了?