Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with cocoapods and Core Plot HEAD #163

Closed
trondkr opened this issue Mar 11, 2015 · 20 comments
Closed

Problem with cocoapods and Core Plot HEAD #163

trondkr opened this issue Mar 11, 2015 · 20 comments

Comments

@trondkr
Copy link

trondkr commented Mar 11, 2015

Hi. If I understand it correctly the cocoapods podspecs for Core Plot now points to the HEAD. In the latest version there are a couple of lines that should be commented out for Core Plot to compile properly. The lines are in CPTAnimation:

IMP setterMethod = [boundObject methodForSelector:boundSetter];
setterMethod(boundObject, boundSetter, tweenedValue);

IMP setterMethod = [boundObject methodForSelector:boundSetter];
setterMethod(boundObject, boundSetter, buffer);

And in CPTAnimationPlotRangePeriod:
IMP getterMethod = [boundObject methodForSelector:boundGetter];
CPTPlotRange *current = getterMethod(boundObject, boundGetter);

I assume these are upcoming implementations. I can of course edit these out myself, but its a problem when running CI unit test with automatic pod update.

Thanks for a great product. Cheers, Trond

@eskroch
Copy link
Member

eskroch commented Mar 11, 2015

These are fixed on the Master branch. Your podfile should include the following line to use the latest Core Plot code from Master:

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

@trondkr
Copy link
Author

trondkr commented Mar 14, 2015

Thank you

@trondkr trondkr closed this as completed Mar 14, 2015
@trondkr trondkr reopened this Mar 14, 2015
@trondkr
Copy link
Author

trondkr commented Mar 14, 2015

Erich. I must be doing something wrong here. When I use your suggested settings and install from Master (Installing CorePlot 99.99.99 (was 1.5.1)), I get an error "CorePlot/CPTAnimation.h file not found" when I build my target. Core Plot builds correctly. Do I need to add a search path in build settings or something else when I use this approach? Thanks for your help. T

@maslovsa
Copy link

I have the same issue using Pods and getting error "CorePlot/CPTAnimation.h file not found".
I try to use different releases and can't build my project.

It's great case for me - to remove "Pods" from .gitignore!

May be someone fix it - may be with with Searching path on Pods internal directories.

eskroch added a commit that referenced this issue Mar 27, 2015
…d other fixes in the podspec. Fixed issue #163 and issue #164.
@eskroch
Copy link
Member

eskroch commented Mar 27, 2015

This issue should be fixed now. I created a new Core Plot header file for CocoaPods. The old Mac framework header doesn't work because CocoaPods builds a static library, not a framework. The new header can be used from iOS, too, or you can continue to use the old CorePlot-CocoaTouch.h.

#import "CorePlot.h"

@trondkr
Copy link
Author

trondkr commented Mar 31, 2015

Thanks Erich! This solved the problem.

@trondkr trondkr closed this as completed Mar 31, 2015
@pravinmaske2325
Copy link

Hello seniors,
I am not a iOS developer.
Due to some problems i have to work on a iOS application.
And i am having some problems , i have used the core-plot coco pods in my application(core plot 2.2)
After that i am facing some problems please help me , i am not able to describe it in words due not knowing the concepts of iOS development.
i have attached some screen shots please check it and help me find the solution .
Thank You in advance.
screen shot 2018-09-26 at 3 22 30 pm
screen shot 2018-09-26 at 3 23 22 pm
screen shot 2018-09-26 at 3 21 51 pm

@eskroch
Copy link
Member

eskroch commented Sep 26, 2018

Try using the release-2.3 branch.

pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.3'

@pravinmaske2325
Copy link

pravinmaske2325 commented Sep 26, 2018

Thank you for your answer #eskroch
After i update the pod file and run the pod install in terminal, it is showing following error while installing through coco pods
screen shot 2018-09-26 at 4 04 18 pm

@eskroch
Copy link
Member

eskroch commented Sep 26, 2018

Could you post your podfile?

@pravinmaske2325
Copy link

pravinmaske2325 commented Sep 27, 2018

Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'Atlas Copco' do
Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!

Pods for Atlas Copco
pod 'CorePlot', '~> 2.2'

end

@pravinmaske2325
Copy link

Hello #eskroch
any update on this, i am still stuck here

@eskroch
Copy link
Member

eskroch commented Sep 29, 2018

Replace

pod 'CorePlot', '~> 2.2'

with

pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.3'

@pravinmaske2325
Copy link

Hi eskrochh

I have done that all ready and still got the following errors

My pod File code

platform :ios, '9.0'

target 'Atlas Copco' do
Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!

Pods for Atlas Copco
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.3'

end

The error while installing pod file is
screen shot 2018-10-01 at 11 59 06 am

@iDevelopper
Copy link

Try to comment this line:
platform :ios, '9.0'

@pravinmaske2325
Copy link

Thank you for your answer's #eskroch and #iDevelopper.
I have successfully integrated core plot in my application.
The application is running now. But it gives following error
If i pass

x.majorIntervalLength = CPTDecimalFromInt(2);

then it gives following error

Assigning to 'NSNumber * _Nullable' from incompatible type 'NSDecimal

Form #eskroch answer in google group i have changed the

x.majorIntervalLength = [NSDecimalNumber decimalNumberWithString:@"2"];

it removes the error but after running the application on device it hung on the chart page and chart are not showing.

is there any suggestion to resolve this issue.

@eskroch
Copy link
Member

eskroch commented Oct 2, 2018

x.majorIntervalLength = @(2); is more concise.

I don't think that would cause the problem, though. Run the app with the debugger or look at the crash log to see where it's getting hung up.

@pravinmaske2325
Copy link

Hi #eskroch

Thank for your help the issue is something else.
It seems that i have to use trailing/trading instead on right/left in my application

@pravinmaske25
Copy link

HI #eskroch

Thanks for all your support all this time.

Few days ago i created the application build successfuly.

Yestarday after updating Xcode to 10 i am facing some issues and not able to found the correct solution if possible can you help me.

The error is following
screen shot 2018-10-11 at 3 54 53 pm

Since i am developing the application for iPhone why it is giving me errors in mac specific .

If you have any solution to tell please help me.
Thank in advance.

@eskroch
Copy link
Member

eskroch commented Oct 11, 2018

I've been trying to fix a similar issue in a couple of the Core Plot example apps, too. Xcode gets confused looking for header files in the Core Plot framework. I've tried a bunch of different things, but haven't found the solution yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants