建筑x86_64的未定义符号:"_OBJC_CLASS_$_HandBluetooth",引用自:


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 文件,但我没有解决方案 请建议解决此错误

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

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

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

最新更新