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

Undefined symbols for architecture - import issues #3536

Closed
marcolettieri opened this issue Jun 27, 2018 · 1 comment
Closed

Undefined symbols for architecture - import issues #3536

marcolettieri opened this issue Jun 27, 2018 · 1 comment

Comments

@marcolettieri
Copy link

Charts version/Branch/Commit Number:3.1.1
Xcode version:9
Swift version:4.1
Platform(s) running Charts:armv7
Hi,
i'm trying to using your library in my project.
I've tried via cocoa and via manual import but every time i try to build and launch on my iPhone i get this error:

ld: warning: directory not found for option '-F/Users/Me/Documents/MyApp/Charts/ThirdParty/Realm/ios'
ld: warning: ignoring file /Users/Me/Library/Developer/Xcode/DerivedData/myproject-dbdiljwlqdyklosctawpbofhrmqd/Build/Products/Debug-iphoneos/Charts.framework/Charts, file was built for arm64 which is not the architecture being linked (armv7): /Users/Me/Library/Developer/Xcode/DerivedData/myproject-dbdiljwlqdyklosctawpbofhrmqd/Build/Products/Debug-iphoneos/Charts.framework/Charts
Undefined symbols for architecture armv7:
"OBJC_CLASS$__TtC6Charts15BarChartDataSet", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$_ChartDefaultValueFormatter", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$__TtC6Charts16LineChartDataSet", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$__TtC6Charts12BarChartData", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$__TtC6Charts17BarChartDataEntry", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$__TtC6Charts13LineChartData", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$__TtC6Charts14ChartDataEntry", referenced from:
objc-class-ref in Chart_Data.o
"OBJC_CLASS$_ChartDefaultAxisValueFormatter", referenced from:
objc-class-ref in Chart_Data.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've tried already to clean many times without any different result.
Can you help me?

@marcolettieri
Copy link
Author

Solved importing manually in project and Change "Build Active Architecture Only" to "NO" and adding supported architectures

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

1 participant