Hey I have to schemas Person and Personal with object IDs. Previosly I had an Schema Users without an _id. Since deleting Users I expect I should be able to sync realm on the swift client. But I keep getting this error:
Error Domain=io.realm Code=1 "Schema validation failed due to the following errors:
- There must be a primary key property named ‘_id’ on a synchronized Realm but none was found for type ‘User’" UserInfo={Error Name=SchemaValidationFailed, NSLocalizedDescription=Schema validation failed due to the following errors:
- There must be a primary key property named ‘_id’ on a synchronized Realm but none was found for type ‘User’, Error Code=1}
What I have tried:
- Restarting Sync
- Deleting the app from my phone and restarting my phone
- Check Schema in MongoDB and make sure it matches.
Please let me know if anyone has ideas!