Question

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

How can I solve this problem?

Was it helpful?

Solution

When Xcode (more precisely in your case, Clang compiler) complains about a symbol not found for an architecture, it's probably because you've forgot to add reference to a framework you are not aware of! for example if you are using a 3rd party framework, first thing you should check, is the dependencies it has on other frameworks, in your case, probably CoreBluetooth.framework.

Open your project, select your target, in the build phase, open Link Binaries with libraries and select the frameworks your need to add reference to. good luck

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top