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

Compile error on iPhone 4s simulator #1165

Closed
IceHawk66 opened this issue Jun 22, 2016 · 3 comments
Closed

Compile error on iPhone 4s simulator #1165

IceHawk66 opened this issue Jun 22, 2016 · 3 comments

Comments

@IceHawk66
Copy link

IceHawk66 commented Jun 22, 2016

First of all, I can compile my app on iPhone 6 and iPhone 5s without any issues. On iPhone 4S simulator the build fails with these errors:

ld: warning: ignoring file /Users/icehawk/Library/Developer/Xcode/DerivedData/Series_Log-ezkivtqtsxghfjbwjdpxuktbujgr/Build/Products/Debug-iphonesimulator/Charts.framework/Charts, file was built for x86_64 which is not the architecture being linked (i386): /Users/icehawk/Library/Developer/Xcode/DerivedData/Series_Log-ezkivtqtsxghfjbwjdpxuktbujgr/Build/Products/Debug-iphonesimulator/Charts.framework/Charts
Undefined symbols for architecture i386:
"Charts.ChartDataEntry.__allocating_init (value : Swift.Double, xIndex : Swift.Int) -> Charts.ChartDataEntry", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
"Charts.PieChartDataSet.__allocating_init (yVals : [Charts.ChartDataEntry]?, label : Swift.String?) -> Charts.PieChartDataSet", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
"Charts.ChartData.__allocating_init (xVals : [__ObjC.NSObject]?, dataSet : Charts.IChartDataSet?) -> Charts.ChartData", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
"type metadata accessor for Charts.PieChartData", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
"type metadata accessor for Charts.PieChartView", referenced from:
type metadata accessor for Charts.PieChartView! in DetailTVC.o
"type metadata accessor for Charts.ChartDataEntry", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
type metadata accessor for [Charts.ChartDataEntry] in DetailTVC.o
"type metadata accessor for Charts.PieChartDataSet", referenced from:
Series_Log.DetailTVC.updateChart (Charts.PieChartView, values : [Swift.Double]) -> () in DetailTVC.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any advice on how to fix this? Thanks in advance.

@domingguss
Copy link

tried clearing derived data?

@IceHawk66
Copy link
Author

yes

@liuxuan30
Copy link
Member

Undefined symbols for architecture i386

Please check your CPU arch and maybe set the correct one.

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

3 participants