前任:
Project1 (SVN)
|------Project2 (SVN)
|-----------Project3 (SVN)
当我从 Project1 播客“项目 2 的 URL”时,它会为 Project2 创建 pod,而不是为 Porject3 创建。但 Project2 依赖于 Project3。
如何在 Project2.podspec 中为 Project3 指定 SVN 存储库/路径。提前致谢。
Project2.podspec 看起来像:
Pod::Spec.new do |s|
s.name = ‘Project2’
s.version = '0.0.1'
s.summary = ''
s.homepage = ‘svn url’
s.authors = ‘authr’
s.source = { :svn => ‘SVN url to Project2’ }
s.source_files = '*/.{h,m}'
pch_AF = <<-EOS
#ifndef TARGET_OS_IOS
#define TARGET_OS_IOS TARGET_OS_IPHONE
#endif
#ifndef TARGET_OS_WATCH
#define TARGET_OS_WATCH 0
#endif
#ifndef TARGET_OS_TV
#define TARGET_OS_TV 0
#endif
EOS
s.prefix_header_contents = pch_AF
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.dependency 'Project3'
s.dependency 'AFNetworking'
s.dependency 'Mantle'
s.dependency 'XMLDictionary'
end
我知道我们不能为依赖添加路径。下面的行还有其他方法吗?
s.dependency 'Project3'