我的Podfile看起来像这样
pod'NSNumber + Toolbox',:path => '〜/文档/ iPhoneDev /项目/助手/ NSNumberToolbox'
但是通过#import“NSNumber + Toolbox.h”导入标题不起作用,因为找不到该文件。
Podfile有什么问题?
编辑:
Pod::Spec.new do |s|
s.name = "NSNumber+Toolbox"
s.version = "0.0.1"
s.summary = "NSNumber category."
s.homepage = "https://github.com/HHuckebein/NSNumberToolbox"
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.author = { "RABE_IT Services" => "info@berndrabe.de" }
s.source = { :git => "https://github.com/HHuckebein/NSNumberToolbox.git", :tag => "0.0.1" }
s.platform = :ios, '6.0'
s.source_files = 'NSNumberToolbox/NSNumber+Toolbox.{h,m}'
s.requires_arc = true
end
答案 0 :(得分:1)
此规范对我来说非常适合。确保您的本地源文件夹与repo本身具有相同的结构。另外,请确保您使用的是最新版本的CocoaPods([sudo] gem update
)