It looks like you are missing including the amework in your project. Thanks for any help or pointers to the right direction. NSArray *devices = įor (id currentDevice in : currentDevice classOfDevice ], ) It is clearly a linker error, however I have no idea, to what it relates, except that there is an issue with finding the implementation for IOBluetoothDevice, on both x86 and 圆4 architecture, while the header files are from a standard included Framework, called IOBluetooth?įor your information my main code “main.m” being: #import I also have tried building it for a 32-bit machine (build fails again). The IOBluetooth library is however, a standard Framework like the Foundation Framework. The common problem should be a reference to a file, of which only the header files are imported and no implementation (*.m-file) is found by the linker. Ld: symbol(s) not found for architecture x86_64Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation) '_OBJC_CLASS_$_IOBluetoothDevice', referenced from: It builds with the following error: Undefined symbols for architecture x86_64: I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog.
It is my first experience with Xcode 4.6.3.