【发布时间】:2016-05-14 15:34:41
【问题描述】:
我创建了一个私有 pod,但是当我运行 pod install 时,出现以下错误。
我知道我缺少 "source" ,但是对于我不想上传到任何 git 的私有 pod。存储库。有什么办法可以解决。
吊舱安装
Analyzing dependencies
Fetching podspec for `MyLib` from `../MyLib`
[!] The `MyLib` pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute `source`.
- WARN | homepage: The homepage has not been updated from default
- WARN | summary: The summary is not meaningful.
.podspec 如下
Pod::Spec.new do |s|
s.name = "MyLib"
s.version = "0.0.1"
s.summary = "A short description of MyLib."
s.description = "This is a my Lib. It can be used for post and get request"
s.homepage = "http://EXAMPLE/MyLib"
s.license = "MIT"
s.author = { "Abc Bbc" => "abcd@abcd.com" }
s.source_files = 'MyLib', 'MyLib/**/*.{h,m}'
s.public_header_files = 'MyLib/**/*.h'
s.resources = "MyLib/*.png"
s.framework = 'SystemConfiguration'
s.requires_arc = true
s.dependency 'AFNetworking'
end
【问题讨论】:
标签: ios objective-c xcode cocoapods