架构x86_64的未定义符号:" _OBJC_CLASS _ $ _ HandBluetooth",引自:

时间:2016-02-26 06:27:50

标签: ios objective-c bluetooth

warning: ignoring file /Users/-----/Desktop/CSHandData/CSHandData/CSHandBag/libCSHand.a, missing required architecture x86_64 in file /Users/-----/Desktop/CSHandData/CSHandData/CSHandBag/libCSHand.a


1.. "_OBJC_CLASS_$_HandBluetooth", referenced from:
  objc-class-ref in ViewController.o
2.. clang: error: linker command failed with exit code 1 (use -v to see invocation)

添加构建阶段 - >编译源 - >添加.m文件但我没有解决方案请建议解决此错误

1 个答案:

答案 0 :(得分:1)

libCSHand.a没有x86_64架构,您可以将x86_64添加到静态框架中。

您可以使用此命令检查支持的体系结构。

  1. lipo -info libCSHand.a
  2. xcrun -sdk iphoneos lipo -info libCSHand.a
  3. file libCSHand.a