I'm trying to use the Sensor CN1LIB to get accelerometer data. The app
crashes on iOS if I instantiate the SensorsManager. I have the following
code that is called by another class to do that, and I'm passing in 10000
for the seconds/sample parameter.
accelerometer = SensorsManager.getSensorsManager(SensorsManager.
TYPE_ACCELEROMETER, sampleRateMicroSeconds);
if (accelerometer != null) {
accelerometer.registerListener(new SensorListener() {
public void onSensorChanged(long timeStamp, float x, float y
, float z) {
updateValues(timeStamp, x, y, z);
}
});
I got the sources, and built it on XCode, and this is the stack trace it's
giving:
2017-07-14 22:58:14.472104-0700 RallyPacControl[2992:2474293]
[DYMTLInitPlatform] platform initialization successful
2017-07-14 22:58:15.196843-0700 RallyPacControl[2992:2474069]
libMobileGestalt MobileGestaltSupport.m:153: pid 2992 (RallyPacControl)
does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT
appropriately entitled
2017-07-14 22:58:15.197163-0700 RallyPacControl[2992:2474069]
libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see
<rdar://problem/11744455>)
2017-07-14 22:58:16.599170-0700 RallyPacControl[2992:2474312]
-[CMMotionManager init:]: unrecognized selector sent to instance 0x1700039b0
2017-07-14 22:58:16.600580-0700 RallyPacControl[2992:2474312] ***
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[CMMotionManager init:]: unrecognized selector sent to instance
0x1700039b0'
*** First throw call stack:
(0x187852fe0 0x1862b4538 0x187859ef4 0x187856f54 0x187752d4c 0x100314714
0x100bc6a3c 0x100315d10 0x1003142a8 0x100311ffc 0x100943a60 0x1009af358
0x1009897f0 0x10098abcc 0x100a70194 0x100435874 0x100432fbc 0x1007c01a0
0x100a70194 0x100182d14 0x100a70194 0x100a8c524 0x100bca3a8 0x18691568c
0x18691559c 0x186912cb4)
libc++abi.dylib: terminating with uncaught exception of type NSException
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/d81de8da-6aa5-4ade-95d9-d5ac2a86e457%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.