前:
Project1 (SVN)
|------Project2 (SVN)
|-----------Project3 (SVN)
当我从Project1播放“项目2的URL”时,它会为Project2创建不为Porject3创建的pod。但是Project2依赖于Project3。
如何在Project2.podspec中指定Project3的SVN repo /路径。提前谢谢。
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'