Coreplot在ios中构建失败问题
问题描述:
我在构建具有核心图库的应用程序时遇到以下问题。 它在2天前工作。但它突然停止运行。Coreplot在ios中构建失败问题
libCorePlot-CocoaTouch.a (2 slices)
Undefined symbols for architecture x86_64:
"_CPTDecimalFromFloat", referenced from:
-[GraphView generateLayout] in GraphView.o
"_CPTDecimalFromInt", referenced from:
-[GraphView generateLayout] in GraphView.o
"_OBJC_CLASS_$_CPTAxisLabel", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTBarPlot", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTColor", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTConstraints", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTFill", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTGraphHostingView", referenced from:
_OBJC_CLASS_$_GraphView in GraphView.o
"_OBJC_CLASS_$_CPTMutableLineStyle", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTMutableTextStyle", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTPlotRange", referenced from:
objc-class-ref in GraphView.o
"_OBJC_CLASS_$_CPTXYGraph", referenced from:
objc-class-ref in GraphView.o
"_OBJC_METACLASS_$_CPTGraphHostingView", referenced from:
_OBJC_METACLASS_$_GraphView in GraphView.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 CorePlot-CocoaTouch.xcodeproj
- 转到项目,并单击构建
- 现在去的核心情节框架文件夹中的MAC。你可以在那看到build文件夹。
- 现在打开终端,并给你的核心绘路径
- CD CorePlot_1.4 /来源/建设/
- 类型脂-create ./Debug-iphoneos/libCorePlot-CocoaTouch.a ./Debug-iphonesimulator/libCorePlot -CocoaTouch.a -output core_plot_all.a
- 已创建新库,现在将此库和核心标题添加到项目中。
- 现在建立你的项目。
之后-ObjC添加到其他连接标志
我想你会发现在这个答案的解决方案:http://*.com/a/20266141/4177109 – tbaranes 2014-10-28 08:01:28
@Ckouta谢谢您的快速回复。我提到这个链接,它没有解决我的问题。 – Rakesh 2014-10-28 08:14:19