so the BluetoothManager.scan... was a hardware problem.
now I see
{"msg":"#Warning Error reading file", "file":"//private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist", "error":"Error Domain=NSCocoaErrorDomain Code=257 "The file “com.apple.CoreMotion.plist” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=//private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist, NSURL=file:////private/var/Managed%20Preferences/mobile/com.apple.CoreMotion.plist, NSUnderlyingError=0x14cc64ea0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}"}
I have the motion privacy tag in the plist for the code doing request camera assistance in the
connect handler for the nearby operation..
in setup accessory
dump of capabilities direction = false
device does not support direction measurement
device DOES support camera assistance
here is the code
logger.info("dump of capabilities direction = \(NISession.deviceCapabilities.supportsDirectionMeasurement)");
if(!(NISession.deviceCapabilities.supportsDirectionMeasurement)){
logger.info("device does not support direction measurement");
if(NISession.deviceCapabilities.supportsCameraAssistance){
logger.info("device DOES support camera assistance")
accessory.configuration?.isCameraAssistanceEnabled = CMMotionManager().isDeviceMotionAvailable