【发布时间】:2016-07-06 13:59:57
【问题描述】:
我已成功创建静态库 MyCore,并创建了相关存储库。
然后我以这种方式创建了 MyCore.podspec:
Pod::Spec.new do |s|
s.name = "MyCore"
s.version = "0.1.4"
s.summary = "..."
s.description = "..."
s.homepage = "https://foo.com/MyCore"
s.license = '...'
s.platform = :ios, "8.0"
s.source = { :git => "https://foo.com/MyCore.git", :tag => s.version.to_s }
s.source_files = 'MyCore/*.swift'
end
我跑
pod spec lint --allow-warnings
并且 podspec 通过了验证。
很好,比在我的项目中我有 podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
target 'MyProject' do
pod 'MyCore', :git => 'https://foo.com/MyCore.git'
end
当我运行 'pod install' 时,我的 pod 已安装,但没有像我预期的那样在最后一个标签 (0.1.4) 处安装:
Installing MyCore 0.1.0
有什么想法吗?
【问题讨论】:
-
您的
Podfile.lock文件对MyCore有什么看法?另外,pod outdated的输出是什么?