Reputation: 3013
I am running into an issue where I am using CorePlot API with Pods (recently added CorePlot in Pod file) in my project and every time I try to build the project for Device/Simulator I get a couple of errors from CPTAnimation.h
too many arguments to function call, expected 0, have 3
setterMethod(boundObject, boundSetter, buffer);
too many arguments to function call, expected 0, have 3
setterMethod(boundObject, boundSetter, tweenedValue);
As mentioned on this commit it has already been fixed here
I am using 0.36.3
of cocoa pods version on my machine. How do I get access to this build on Cocoapods ? I tried to fix these errors manually and was able to run the project but When I retried after I nuked everything and reinstalled Cocoapods with a subsequent Pod update,I lost all my previous changes. I feel this is not the correct way of using libraries with Cocoapods
For more info please refer to the screenshot
Can someone guide me in right direction to fix these error ?
Upvotes: 1
Views: 609
Reputation: 27381
I recently fixed some Core Plot issues related to CocoaPods. Use the following line in your podfile to get the latest Core Plot code:
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
There is a new header file that can be used from iOS or the Mac. On iOS, you can continue to use the old CorePlot-CocoaTouch.h
, if you prefer.
#import "CorePlot.h"
Upvotes: 3
Reputation: 318
For installing PodNew project or existing project
1> Sudo gem Update – system
2> Sudo gem Install cocoapods
3> Pod stepup
4> “Go to Project folder”
5> pod init
6> open –a xcode podfile
7> add the framework what u need
Upvotes: 0