I am new to CocoaPods, and I'm trying to install CorePlot with this line in my Podfile:
platform :ios, "7.0"
...
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
When I open the .xcworkspace
file following installation the CorePlot shows missing frameworks. I installed these linked binaries into my Xcode project, but this did not resolve the problem. Within the CorePlot target there does not seem to be a separate way to install the frameworks.
This is not the only problem. When I try to reference files within the CorePlot library, I get a file not found error even though I can see the files within the CorePlot target:
I tried the following import statements:
#import "CorePlot-CocoaTouch.h"
#import <CorePlot-CocoaTouch.h>
#import <CorePlot/CorePlot-CocoaTouch.h>
#import "CorePlot/CorePlot-CocoaTouch.h"
All result in the same error.
I don't know whether these problems are related. What should I be checking and what might have gone wrong? Here's what I've looked at:
https://github.com/core-plot/core-plot/issues/163
I'd appreciate any troubleshooting tips or explanations as to what's going on. Thanks.
Here is my full 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
I did not save the output when I initialized the pod, but here's the output from pod update:
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
The angle bracket syntax for imports is for headers in frameworks. CocoaPods uses static libraries, so you need to use the other syntax.
I just tried a clean Core Plot install using the podfile settings in the question above. It worked fine with CocoaPods 0.37.1 and Xcode 6.3.2. Make sure your copy of CocoaPods is up-to-date.