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

sun*_*nny 7 xcode core-plot ios cocoapods

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

 platform :ios, "7.0"
 ...
 pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
Run Code Online (Sandbox Code Playgroud)

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

frameworkinstalled

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

我尝试了以下import语句:

#import "CorePlot-CocoaTouch.h"
#import <CorePlot-CocoaTouch.h>
#import <CorePlot/CorePlot-CocoaTouch.h>
#import "CorePlot/CorePlot-CocoaTouch.h"
Run Code Online (Sandbox Code Playgroud)

都导致同样的错误.

文件未找到

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

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
Run Code Online (Sandbox Code Playgroud)

我初始化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
Run Code Online (Sandbox Code Playgroud)

Eri*_*och 0

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

#import "CorePlot-CocoaTouch.h"
Run Code Online (Sandbox Code Playgroud)

我刚刚尝试使用上述问题中的 podfile 设置进行干净的 Core Plot 安装。它在 CocoaPods 0.37.1 和 Xcode 6.3.2 上运行良好。确保您的 CocoaPods 副本是最新的。