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

file was built for x86_64 which is not the architecture being linked (arm64):error: linker command failed with exit code 1 (use -v to see invocation) #3877

Closed
RamNalluri opened this issue Mar 1, 2019 · 2 comments

Comments

@RamNalluri
Copy link

Added Chats.framework in base project(MizeFoundationFramework). Using base project as pod for Test projects(CxCloud).

Able to run the Test project in simulator, where as when tried to run the same on device getting below error
ld: warning: ignoring file /Users/rambabunalluri/WorkSpace/CxCloud/Mar-2019/02-03-2019/CXCloud-iOS/Pods/MizeFoundationFramework/Charts.framework/Charts, file was built for x86_64 which is not the architecture being linked (arm64): /Users/rambabunalluri/WorkSpace/CxCloud/Mar-2019/02-03-2019/CXCloud-iOS/Pods/MizeFoundationFramework/Charts.framework/Charts
Undefined symbols for architecture arm64:
"OBJC_CLASS$__TtC6Charts13LineChartData", referenced from:
objc-class-ref in libMizeFoundationFramework.a(MZLineGraphTableViewCell.o)
"OBJC_CLASS$__TtC6Charts16LineChartDataSet", referenced from:
objc-class-ref in libMizeFoundationFramework.a(MZLineGraphTableViewCell.o)
"OBJC_CLASS$__TtC6Charts14ChartLimitLine", referenced from:
objc-class-ref in libMizeFoundationFramework.a(MZLineGraphTableViewCell.o)
"OBJC_CLASS$__TtC6Charts14ChartDataEntry", referenced from:
objc-class-ref in libMizeFoundationFramework.a(MZLineGraphTableViewCell.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tried below mechanisms but could not work. Please help on this
Added --->architecture x86_64 : Not worked.
Build Active Architecture Only : (Tried both YES & NO) : Not worked.
Added in Valid architecture x86_64 : Not Worked.

screenshot 2019-03-01 at 5 03 25 pm

@RamNalluri RamNalluri reopened this Mar 2, 2019
@RamNalluri
Copy link
Author

How to support for both architectures Physical Devices and Simulators.
How to get a Universal framework.

@liuxuan30
Copy link
Member

ask on stack overflow.

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