CocoaPods CorePlot安装显示缺少框架和丢失的文件

时间:2015-06-19 15:12:00

标签: ios xcode cocoapods core-plot

我是CocoaPods的新手,我正试图在我的Podfile中使用此行安装CorePlot:

 platform :ios, "7.0"
 ...
 pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'

当我在安装后打开.xcworkspace文件时,CorePlot显示缺少框架。我将这些链接的二进制文件安装到我的Xcode项目中,但这并没有解决问题。在CorePlot目标中,似乎没有单独的方法来安装框架。

frameworkinstalled

这不是唯一的问题。当我尝试在CorePlot库中引用文件时,即使我可以看到CorePlot目标中的文件,我也会收到文件未找到错误:

我尝试了以下导入语句:

#import "CorePlot-CocoaTouch.h"
#import <CorePlot-CocoaTouch.h>
#import <CorePlot/CorePlot-CocoaTouch.h>
#import "CorePlot/CorePlot-CocoaTouch.h"

所有导致相同的错误。

filenotfound

我不知道这些问题是否相关。我应该检查什么,可能出了什么问题?以下是我看过的内容:

https://github.com/core-plot/core-plot/issues/163

我很感激任何有关正在发生的事情的疑难解答提示或解释。感谢。

这是我的完整Podfile:

platform :ios, '7.0'

target 'CorePlotTestDo-OverTests' do
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
pod 'AFNetworking', '~> 2.5'

end

初始化pod时我没有保存输出,但这是pod更新的输出:

Update all pods
Analyzing dependencies
Pre-downloading: `CorePlot` from `https://github.com/core-plot/core-plot.git`
Downloading dependencies
Using AFNetworking (2.5.4)
Installing CorePlot 1.6 (was 1.6)
Generating Pods project
Integrating client project

1 个答案:

答案 0 :(得分:0)

导入的尖括号语法适用于框架中的标头。 CocoaPods使用静态库,因此您需要使用其他语法。

#import "CorePlot-CocoaTouch.h"

我刚刚使用上面问题中的podfile设置尝试了一个干净的Core Plot安装。它适用于CocoaPods 0.37.1和Xcode 6.3.2。确保您的CocoaPods副本是最新的。

相关问题