Hi,
I have a local realm which works great for the most part. But ever since the app is on the store, it seems sometimes the app just fails to open the realm. It’s rare, but it happens, and to the same users.
Fatal error: ‘try!’ expression unexpectedly raised an error: Error Domain=io.realm Code=3 “Failed to open file at path ‘/private/var/mobile/Containers/Shared/AppGroup/…/default.realm.lock’: Operation not permitted” UserInfo={Error Code=3, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/…/default.realm.lock, Error Name=PermissionDenied, NSLocalizedDescription=Failed to open file at path ‘/private/var/mobile/Containers/Shared/AppGroup/…/default.realm.lock’: Operation not permitted}
I noticed that when these crashes occur the deviceid for the vendor was also returning nil. Maybe it’s related. Currently it’s the highest frequency crash for my app.
Thanks!