ios – 如何处理同步错误:“收到错误的变更集:断言失败:左().link_target_table_ndx == right().link_target_table_ndx”

我在登录时在对象服务器控制台上遇到此错误,无法再同步.之前有相同的用户帐户.

2016-12-13T13:20:52.858Z – error: sync-server: Connection[6]:
Session[1]: Bad changeset received: Assertion failed:
left().link_target_table_ndx == right().link_target_table_ndx
(message_type=’upload’)

2016-12-13T13:20:52.858Z – info: sync-server: Connection[6]:
Session[1]: Session terminated (session_ident=1).

2016-12-13T13:20:52.858Z – info: sync-server: Connection[6]: Sending:
ERROR(error_code=212, message_size=22, try_again=0, session_ident=1)

2016-12-13T13:20:52.859Z – info: sync-server: Connection[6]:
Connection closed by client: End of input

这是什么意思?我如何解决它?

编辑:我尝试增加架构版本,然后我得到:

IMPORTANT: if you see this error, please send this log to
help@realm.io.

2016-12-13 14:37:07.407848 proj[34851:10576594] Sync: Opening Realm
file:
/var/mobile/Containers/Data/Application/65681835-AE09-4E4C-830A-BA7A8ADF0D69/Documents/realm-object-server/b77ccd68258d68251aafb1bac5d8d653/realm%3A%2F%2F192.168.0.12%3A9080%2F%7E%2Fz

2016-12-13 14:37:07.408088 proj[34851:10576378]
/Users/x/y/z/Pods/Realm/Realm/RLMClassInfo.mm:97: [realm-core-2.2.0]
Assertion failed: rlmSchema.objectSchema.count == schema.size()

(发送到help@realm.io)

最佳答案 这意味着你有两个模式,其中一个字段可以为空,另一个字段不可以(错误可能更好,被授予).这是
Swift / Java模型的常见错误,因为默认情况下Java可以为空,而Swift字符串则不是.

点赞