ios - 创建私有(private)cocoapod,git标签问题
<p><p>我已经成功创建了一个静态库<em>MyCore</em>,并创建了相关的存储库。<br/>
然后我以这种方式创建了 <em>MyCore.podspec</em>:</p>
<pre><code>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
</code></pre>
<p>我跑</p>
<pre><code>pod spec lint --allow-warnings
</code></pre>
<p>并且 podspec 通过了验证。</p>
<p>很好,比在我的项目中我有 podfile:</p>
<pre><code>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
</code></pre>
<p>当我运行 <strong>'pod install'</strong> 时,我的 pod 已安装,但没有像我预期的那样在最后一个标签 <strong>(0.1.4)</strong> 处安装:</p>
<pre><code>Installing MyCore 0.1.0
</code></pre>
<p>有什么想法吗?</p>
<p> <a href="/image/fbF4n.png" rel="noreferrer noopener nofollow"><img src="/image/fbF4n.png" alt="enter image description here"/></a> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>对于未存储在规范存储库中的私有(private) pod,Cocoapods 无法找到用于比较版本号的引用。</p>
<p>然后运行以下命令强制更新。</p>
<pre><code>pod update
</code></pre></p>
<p style="font-size: 20px;">关于ios - 创建私有(private)cocoapod,git标签问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/38225902/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/38225902/
</a>
</p>
页:
[1]