菜鸟教程小白 发表于 2022-12-11 17:30:10

ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误


                                            <p><p>我正在尝试使用 Cocoapods 1.0.1 下载 coreplot,但它一直抛出错误 <code>'CorePlot/CorePlot-CocoaTouch.h' file not found</code> 我尝试了网上给出的各种解决方案,但没有任何效果为了我。请帮我解决这个问题。</p>

<p>这是我的 <code>podfile</code> 代码示例</p>

<pre><code>source &#39;https://github.com/CocoaPods/Specs.git&#39;

platform :ios, &#39;7.0&#39;

xcodeproj &#39;Sample&#39;

pod &#39;CorePlot&#39;, :git =&gt; &#39;https://github.com/core-plot/core-plot.git&#39;, :branch =&gt; &#39;release-2.0&#39;
pod &#39;Google/Analytics&#39;


target &#39;SampleKIFTests&#39;, :exclusive =&gt; true do
pod &#39;KIF&#39;, &#39;~&gt; 3.3.0&#39;
pod &#39;KIF/IdentifierTests&#39;, &#39;~&gt; 3.3.0&#39;
end
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>在构建为静态库时使用此行包含标题:</p>

<pre><code>#import &#34;CorePlot-CocoaTouch.h&#34;
</code></pre>

<p>或构建框架时的这个:</p>

<pre><code>#import &lt;CorePlot/CorePlot.h&gt;
</code></pre></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/39471858/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/39471858/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误