Realm-cocoa: App crash with keychain error 25299 after upgrading to RealmSwift v5.0.0

Created on 27 May 2020  路  4Comments  路  Source: realm/realm-cocoa

!!! MANDATORY TO FILL OUT !!!

Goals


Upgrade Realm pod to v5.0.0 in our iOS app that used RealmSwift v4.4.0 pod and worked without issues.

Expected Results


App to work seamlessly after upgrade without need to change it (backward compatibility).

Actual Results


We get the following error at startup right after the upgrade from RealmSwift 4.4.0 to 5.0.0:

* Terminating app due to uncaught exception 'RLMException', reason: 'Keychain returned unexpected status code: -25299'

Screenshot 2020-05-27 at 18 53 12

Steps to Reproduce

  1. ran pod update
  2. cleaned derivedData xcode folder
  3. cleaned project
  4. deleted app from iPhone
  5. ran the project from xcode (on the device)
  6. when build finished and was launched on the device, the error occured.
    7. rolling back to pod Realm 4.4.0 and repeating steps 2-5, the app launches fine on the device.

the app has entitlements, but does not have the keychain sharing entitlement added. when keychain sharing entitlement added, the error still occured.

Code Sample

Version of Realm and Tooling


Realm framework version: 5.0.0

Realm Object Server version: v3.28.2

ProductName: Mac OS X
ProductVersion: 10.15.4
BuildVersion: 19E287

/Applications/Xcode.app/Contents/Developer
Xcode 11.5
Build version 11E608c
iOS 13.3.1

Dependency manager + version: ?
/usr/local/bin/pod
1.9.2

/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)

carthage not found
(not in use here)

/usr/bin/git
git version 2.24.3 (Apple Git-128)

O-Community

Most helpful comment

We are actively debugging this issue.

All 4 comments

I am seeing the same thing. The app crashes whenever trying to access the syncmanager.

This issue was reported here: https://github.com/realm/realm-cocoa/issues/6494

The issue was created 24 days ago and it has been 10 days since the last comment by the realm team. Any updates?

Any updates? #6494 is a beta issue and is not in the release notes, this is on GA.

We are actively debugging this issue.

@adrianchirita
I've reproduced this consistently today. We think that @tgoyne 's first thought here was correct.

I'll link the pull request as soon as it's ready.

Was this page helpful?
0 / 5 - 0 ratings