iOS missing library linker error
I think this is a missing library. I am trying to build to iOS with min target of 8.1 to ARMv7. But when it goes to link I get this error.
Undefined symbols for architecture armv7: "CBAdvertisementDataTxPowerLevelKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataSolicitedServiceUUIDsKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataServiceUUIDsKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataOverflowServiceUUIDsKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataManufacturerDataKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataLocalNameKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataIsConnectable", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_CBAdvertisementDataServiceDataKey", referenced from: -[UnityBleBridge centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in UnityBleBridge.o "_OBJC_CLASS$CBUUID", referenced from: objc-class-ref in UnityBleBridge.o "_OBJC_CLASS$_CBCentralManager", referenced from: objc-class-ref in UnityBleBridge.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
this was previously working. Is something up? Or are my project settings wrong?
Comments (3)
-
-
reporter That fixed the build, sorry to trouble you with that issue. Thanks for the help though.
-
reporter - changed status to resolved
missing bluetooth framework, easy fix.
- Log in to comment
Make sure you have added the CoreBluetooth.framework to "Build Phases" -> "Link Binary With Libraries", also make sure your settings in "Build Settings" -> "Architectures" are setup for what you are trying to do. Specifically "Architectures", "Valid Architectures" and for debugging this issue set "Build Active Architecture Only" to "No".
Hope this helps, let me know if not.
--Jason