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

Unable to update Chart library #2823

Closed
ghost opened this issue Sep 25, 2017 · 4 comments
Closed

Unable to update Chart library #2823

ghost opened this issue Sep 25, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 25, 2017

I am using old chart library that contains swift 2.2 0r 2.0.Now I am trying to update with your latest version. but I am getting lots of problems.

I am following these steps:-
1.Remove previous Chart folder from my repository.
2.Download Project from here: https://github.com/danielgindi/Charts
3.Drag the Charts.xcodeproj to your project
4.Hit the "+" under the "Embedded Binaries" section, and select the Charts.framework

Now my Project based on Objective-C so I also Import ProjectName-Swift.h.

First Getting this error:- compiled with newer version of Swift language (3.0) than previous files (2.0) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you help me How to update easily

@osianSmith
Copy link
Contributor

Hey, This is down to the issues that Charts is now written in Swift 3 while the compiler can only work with swift 2 code.

@liuxuan30
Copy link
Member

It's written in Swift 4 now. Pick old release yourself. But I think upgrade your project to latest Swift is higher priority as I don't think you can keep using old Xcode for long.

@ghost
Copy link
Author

ghost commented Sep 28, 2017

Now I am using Xcode9 and follow all steps but still, I am getting error Unknown class: _TtC6Charts12PieChartView in interface building file. any suggestions?

@liuxuan30
Copy link
Member

TtC6Charts12PieChartView this is mangled class name. You should check your project setting first and maybe rebuild. Check out ChartsDemo for ref

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

2 participants