iOS App Crash - Assertion Failed
in iOS
When I try my app in background, after a few seconds, it crashes. I've already try to delete my app from the device. This is the log in console:
Unknown error calling sqlite3_step (10: disk I/O error) rs
Unknown error calling sqlite3_step (10: disk I/O error) rs
Unknown error calling sqlite3_step (10: disk I/O error) rs
Assertion failed: (success), function __26-[MBLMetaWear synchronize]_block_invoke, file /Users/sschiffli/Code/metawear-ios-api/MetaWear/MBLMetaWear.m, line 850.
(lldb)
This discussion has been closed.
Comments
I'd have to see your code, and my is in Swift, so not sure it would help. I had to use dispatch_async to update screen values, etc. Just guessing, but it seems like your app might be trying to force a UI update or something while running in the background.
dispatch_async(dispatch_get_main_queue(), ^{
// update some UI
});
[self.streamingEvents addObject:self.device.accelerometer.dataReadyEvent];
[self.device.accelerometer.dataReadyEvent startNotificationsWithHandlerAsync:^(MBLAccelerometerData * _Nullable acceleration, NSError * _Nullable error) {
if (acceleration) {
[array addObject:acceleration];
if (a == true) {
[self.device.hapticBuzzer startHapticWithDutyCycleAsync:220 pulseWidth:350 completion:nil];
};
}
}];
Fixed the issue that left associated entitlements in an app still enabled after disabling a capability in the Xcode UI. With this fix, Xcode copies entitlements for Wallet, GameCenter (for OS X), Data Protection, and Push Notifications when building an app. Other entitlements are not copied unless they are declared in the app entitlements plist. (24771364)