OGeek|极客世界-中国程序员成长平台

标题: ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:30
标题: ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误

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

这是我的 podfile 代码示例

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



Best Answer-推荐答案


在构建为静态库时使用此行包含标题:

#import "CorePlot-CocoaTouch.h"

或构建框架时的这个:

#import <CorePlot/CorePlot.h>

关于ios - 使用 cocoapods-1.0.1 下载 Coreplot 时抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39471858/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4