ios - Xcode 5.1.1 安装 CocoaPods 时出错
<p><p>安装 Cocoa Pods 时出现以下错误。</p>
<pre><code>...........
Successfully installed cocoapods-core-0.33.1
Fetching: cocoapods-0.33.1.gem (100%)
ERROR: Error installing cocoapods: cocoapods requires cocoapods-try (~> 0.3.0)
------------------------------------------------------------------------
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我也遇到了同样的问题,解决方法如下:</p>
<pre><code>sudo gem install cocoapods-try
</code></pre>
<p>之后我在尝试安装 cocoapods 时遇到了后续错误:</p>
<pre><code>ERROR:Error installing cocoapods:
cocoapods requires cocoapods-trunk (~> 0.1.1)
</code></pre>
<p>这促使我尝试:</p>
<pre><code>sudo gem install cocoapods-trunk
</code></pre>
<p>完成最后一个 sudo:</p>
<pre><code>sudo gem install cocoapods
</code></pre>
<p>你应该很高兴!希望它对你有用!</p></p>
<p style="font-size: 20px;">关于ios - Xcode 5.1.1 安装 CocoaPods 时出错,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/24773216/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/24773216/
</a>
</p>
页:
[1]