步骤1 – 我在官方网站上下载了CorePlot_1.4.zip
步骤2 – 我添加到我的项目的CorePlotheaders文件夹和名为libCorePlot-Cocoatouch.a的静态库(检查“将项目复制到目标组的文件夹(如果需要)”)
步骤3 – 我添加到其他链接器标志字段以下:-ObjC
步骤4 – 如果libCorePlot-Cocoatouch.a和QuartzCore框架在这里,我检查了link Binary与librarIEs
结果:当我编译我的项目时,当我使用Iphone Retina(4-Inch)时它工作正常。但是当我使用Iphone Retina(4英寸64位)
当我尝试构建和运行时,我收到以下消息:
ld:warning:忽略文件/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.old: symbol(s) not found for architecture x86_64clang: error: linker command Failed with exit code 1 (use -v to see invocation)
我在这个问题上度过了几个小时…请帮助…
解决方法 如果您想要64位版本的Core Plot,则必须构建一个新版本的静态库。 Arm64构建需要iOS 7,但Core Plot也支持早期版本,因此预制库仅为32位。打开CorePlot-Cocoatouch.xcodeproj并将体系结构设置更改为“标准体系结构(包括64位)”。或者构建“通用库”目标,并将生成的静态库替换为Core Plot 1.4附带的静态库,或者使用依赖项目设置。
总结以上是内存溢出为你收集整理的ios – 文件libCorePlot-CocoaTouch.a中缺少必需的架构x86_64全部内容,希望文章能够帮你解决ios – 文件libCorePlot-CocoaTouch.a中缺少必需的架构x86_64所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)