架构x86_64 Xcode的未定义符号

时间:2017-11-12 06:35:39

标签: ios xcode sdk

我手动将SDK添加到我在obj-c中编写的swift项目中,并为其头文件创建了桥接头。
我可以使用SDK中定义的所有函数和类,Xcode知道它们(通过改变它们的颜色而没有错误)但是当我运行项目时有一个错误和一个警告:
the issue navigator

警告:

ignoring file /Volumes/Macintosh HD/Users/arashetemad/Documents/MPosDocs/IOS/MESDK.framework/MESDK, missing required architecture x86_64 in file /Volumes/Macintosh HD/Users/arashetemad/Documents/MPosDocs/IOS/MESDK.framework/MESDK (3 slices)


错误:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NLBlueToothV100ConnParams", referenced from:
  objc-class-ref in MPos.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

如果 MESDK 是您的框架,您需要在MESDK项目(supported architectures)的构建设置中添加缺少的体系结构以支持它

如果不是你的,你需要开发人员要求这样做......