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 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
xcodeproj 'Sample'
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.0'
pod 'Google/Analytics'
target 'SampleKIFTests', :exclusive => true do
pod 'KIF', '~> 3.3.0'
pod 'KIF/IdentifierTests', '~> 3.3.0'
end
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>在构建为静态库时使用此行包含标题:</p>
<pre><code>#import "CorePlot-CocoaTouch.h"
</code></pre>
<p>或构建框架时的这个:</p>
<pre><code>#import <CorePlot/CorePlot.h>
</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]