cocoapods podspec 引用其他库的问题
想把手头的一个库,使用cocoapods来管理,于是去写podspec,写好后,用pod spec lint检查错误,报了几个调用error,原因是调用了几个其他pod 中的函数,心想应该没事,因为下面已经在dependency段中加入了所需要库的引用,所以就没管。
接着在主项目中引用,然后就编译不过了,因为那几个依赖库没有被添进去。
我的podspec:
Pod::Spec.new do |s|
s.name = "xxxxxxx"
s.version = "0.0.1"
s.summary = "A short description of xxxxxxxx."
s.homepage = "xxxxxx"
s.license = 'MIT'
s.author = { "shiweifu" => "[email protected]" }
s.platform = :ios, '7.0'
s.source = { :git => "[email protected]:weifu/iOS/xxxxxx.git", :tag => "0.1" }
s.source_files = 'xxxxxx/Classes/
.{h,m}'
s.exclude_files = 'ViewController.{h,m,xib}', '
.storyboard'
s.resources = "Resources"
s.requires_arc = true
s.ios.deployment_target = '7.0'
s.dependency 'UIView+Helpers'
s.dependency 'UIImage-Resize'
s.dependency 'UIView+Helpers'
s.dependency 'GPUImage'
s.dependency 'ObjectiveSugar'
s.dependency 'NYXImagesKit'
end
请问这个podspec哪里写的不对?
ios objective-c cocoa cocoapods