根据Ray Wenderlich教程的指导,我完成了以下步骤:
Step 1 - 我从官方网站下载了CorePlot_1.4.zip
Step 2 - 我将CorePlotHeaders文件夹和名为libCorePlot-CocoaTouch.a的静态库添加到我的项目中(勾选“如果需要,将项目复制到目标组的文件夹中”)
Step 3 - 我将以下内容添加到Other Linker Flags字段中:-ObjC
Step 4 - 我检查了Link Binary with Libraries中是否有libCorePlot-CocoaTouch.a和QuartzCore框架
结果: 当我使用Iphone Retina(4英寸)时,编译我的项目时它可以正常工作。但是当我使用Iphone Retina(4英寸64位)时,尝试构建和运行时我会得到以下消息:
ld: 警告:忽略文件 /blah/blah/libCorePlot-CocoaTouch.a,文件 /blah/blah/libCorePlot-CocoaTouch.a 中缺少所需的架构 x86_64(3个切片)
这里是完整的消息:
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)
我在这个问题上花了几个小时...请帮帮我...