在文件libCorePlot-CocoaTouch.a中缺少必需的体系结构x86_64 [英] missing required architecture x86_64 in file libCorePlot-CocoaTouch.a

查看:363
本文介绍了在文件libCorePlot-CocoaTouch.a中缺少必需的体系结构x86_64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Ray Wenderlich教程,我完成了以下操作:

According to the Ray Wenderlich tutorial, I done the following :

第1步 - 我已下载 < a href =http://code.google.com/p/core-plot/downloads/detail?name=CorePlot_1.4.zip&can=2&q=> CorePlot_1.4.zip 在官方网站上

Step 1 - I downloaded CorePlot_1.4.zip on the official website

第2步 - 我在项目中添加了 CorePlotHeaders文件夹和名为libCorePlot-CocoaTouch.a 的静态库(检查将项目复制到目标组的文件夹(如果需要)

Step 2 - I added to my project the CorePlotHeaders folder and the static library named libCorePlot-CocoaTouch.a (checking "Copy items into destination group’s folder (if needed)")

第3步 - 我在其他链接标记字段中添加了以下内容: -ObjC

Step 3 - I added into Other Linker Flags field the following : -ObjC

第4步 - 我检查了链接二进制文件库如果 libCorePlot-CocoaTouch.a QuartzC这里有

Step 4 - I checked into Link Binary with Libraries if libCorePlot-CocoaTouch.a and QuartzCore frameworks were here

结果: 当我编译项目时,我工作正常使用 Iphone Retina(4英寸)。但当我使用 Iphone Retina(4英寸64位)
时,我尝试构建并运行时收到以下消息:

Result : When I compile my project, it works fine when I'm using Iphone Retina (4-Inch). But when I'm using Iphone Retina (4-Inch 64-bit) I got the following message when I try to build and run :

ld:警告:忽略文件/blah/blah/libCorePlot-CocoaTouch.a,缺少文件/blah/blah/libCorePlot-CocoaTouch.a中需要的架构x86_64(3个切片)

这里有完整的消息:

Here the complete message :

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)

我在这个问题上花了几个小时......请帮忙......

I spent several hours on this issue... Please help...

推荐答案

如果你想要一个64位版本的Core Plot,你将不得不构建一个新版本的静态库。 Arm64版本需要iOS 7,但Core Plot也支持早期版本,因此预构建的库仅为32位。

If you want a 64-bit version of Core Plot, you'll have to build a new version of the static library. Arm64 builds require iOS 7 but Core Plot supports earlier versions, too, so the pre-built library is 32-bit only.

打开 CorePlot- CocoaTouch.xcodeproj 并将体系结构设置更改为标准体系结构(包括64位)。构建通用库目标并包含生成的静态库来代替Core Plot 1.4附带的静态库,或者使用依赖项目设置。

Open CorePlot-CocoaTouch.xcodeproj and change the architecture settings to "Standard Architectures (including 64-bit)". Either build the "Universal Library" target and include the resulting static library in place of the one included with Core Plot 1.4 or use the dependent project setup instead.

这篇关于在文件libCorePlot-CocoaTouch.a中缺少必需的体系结构x86_64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆