iOS App Crashes After Upgrading To Couchbase Lite v1.1.0

33 views
Skip to first unread message

BH

unread,
Jul 22, 2015, 6:35:24 PM7/22/15
to Couchbase Mobile
We are attempting to upgraded from Couchbase Lite iOS v1.0.4 to v1.1.0. The app compiles but we are no longer able to login on a fresh install of the app. The app crashes with:

* Assertion failure in -[CBLSyncManager runAuthenticator], <Path to Project>/CouchbaseModels/CBLSyncManager.m:95
WARNING: Exception caught in -[CBLDatabase doAsync:]:
can't change userID from <ID> to <Email Address>, need to reinstall
0 CoreFoundation 0x2656014f <redacted> + 150
2 CoreFoundation 0x2656000d <redacted> + 0
3 Foundation 0x2725fbc9 <redacted> + 92
4 <App Name> 0x00278b17 34-[CBLSyncManager runAuthenticator]_block_invoke + 374
5 <App Name> 0x0027a3ed -[CBLEmailAuthenticator getCredentials:] + 72
6 <App Name> 0x00278993 -[CBLSyncManager runAuthenticator] + 158
7 <App Name> 0x0027962b -[CBLSyncManager replicationProgress:] + 850
8 CoreFoundation 0x265180c5 <redacted> + 12
9 CoreFoundation 0x26471cbd _CFXNotificationPost + 1800
10 Foundation 0x271d43a1 <redacted> + 76
11 Foundation 0x271d8eaf <redacted> + 30
12 <App Name> 0x006e80e1 -[CBLReplication updateStatus:error:processed:ofTotal:serverCert:] + 520
13 <App Name> 0x006e9003 35-[CBLReplication bg_updateProgress]_block_invoke + 54
14 <App Name> 0x006d737f catchInBlock + 90
15 Foundation 0x2729f39f <redacted> + 386
...

What do the logs mean? Why is it trying to change userID from <ID> to <Email Address>? And if we use "userId" inside our json string, will that affect CBLSyncManager's "userID"?

Jens Alfke

unread,
Jul 22, 2015, 6:59:47 PM7/22/15
to mobile-c...@googlegroups.com

On Jul 22, 2015, at 3:35 PM, BH <ben...@pushstrength.com> wrote:

* Assertion failure in -[CBLSyncManager runAuthenticator], <Path to Project>/CouchbaseModels/CBLSyncManager.m:95
WARNING: Exception caught in -[CBLDatabase doAsync:]:
can't change userID from <ID> to <Email Address>, need to reinstall

CBLSyncManager isn’t part of Couchbase Lite — I think that class appears in some of our sample code, so you must have copied it into your app. Since it’s part of your app, you can set breakpoints, step through it, examine variables, etc.

—Jens
Reply all
Reply to author
Forward
0 new messages