在x86_64架构中未定义符号:"_OBJC_CLASS_$_HandBluetooth",引用自:

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


你在模拟器中试过这个了吗? - Anbu.Karthik
没有问题,在Xcode中。 - kalpesh satasiya
1个回答

1
你的 libCSHand.a 没有 x86_64 架构,你可以将 x86_64 添加到你的静态框架中。
你可以使用以下命令检查支持的架构。
  1. lipo -info libCSHand.a
  2. xcrun -sdk iphoneos lipo -info libCSHand.a
  3. file libCSHand.a

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接