【发布时间】:2013-12-14 09:35:35
【问题描述】:
根据Ray Wenderlich tutorial,我做了以下事情:
Step 1 -我在官网下载了CorePlot_1.4.zip
第 2 步 - 我在我的项目中添加了 CorePlotHeaders 文件夹 和 名为 libCorePlot-CocoaTouch.a 的静态库(检查“将项目复制到目标组的文件夹(如果需要)”)
第 3 步 - 我在 Other Linker Flags 字段 中添加了以下内容:-ObjC
第 4 步 - 如果 libCorePlot-CocoaTouch.a 和 ,我检查了 Link Binary with Libraries >QuartzCore 框架在这里
结果:当我编译我的项目时,当我使用 Iphone Retina (4-Inch) 时它运行良好。但是当我使用 Iphone Retina (4-Inch 64-bit) 我在尝试构建和运行时收到以下消息:
ld: warning: ignoring file /blah/blah/libCorePlot-CocoaTouch.a, missing required architecture x86_64 in file /blah/blah/libCorePlot-CocoaTouch.a (3 slices)
完整信息如下:
ld: warning: ignoring file /Users/me/Desktop/project/libCorePlot-CocoaTouch.a, missing required architecture x86_64 in file /Users/me/Desktop/project/libCorePlot-CocoaTouch.a (3 slices)
Undefined symbols for architecture x86_64:
"_CPTDecimalFromCGFloat", referenced from:
-[PatientConstanteVisualiser configurePlots] in PatientConstanteVisualiser.o
-[PatientConstanteVisualiser configureAxes] in PatientConstanteVisualiser.o
"_CPTDecimalFromInteger", referenced from:
-[PatientConstanteVisualiser configureAxes] in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTAxisLabel", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTColor", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTFill", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTMutableLineStyle", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTMutableTextStyle", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTPlotSymbol", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTScatterPlot", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTTheme", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_OBJC_CLASS_$_CPTXYGraph", referenced from:
objc-class-ref in PatientConstanteVisualiser.o
"_kCPTStocksTheme", referenced from:
-[PatientConstanteVisualiser configureGraph] in PatientConstanteVisualiser.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在这个问题上花了几个小时...请帮助...
【问题讨论】:
-
改变xcode的架构
-
i 坚韧的 coreplot 不支持 64 位架构确实检查了
-
不,我已经在另一个项目中使用过 Core Plot,并且能够使用 Iphone Retina(4 英寸 64 位) 运行它。但是我找不到为什么它在我的新项目中不起作用...
-
现在检查我的答案@
标签: ios iphone xcode xcode5 core-plot