Before the 3.17.3 version, the function has been running normally. After the 3.18.0 was online, some devices received feedback flashback. The code has not been changed. The check found that the problem is caused by the 3.18.0 version.
Cart *cart = [Cart objectForPrimaryKey:@(shopId)];
if (!cart) {
RLMRealm *realm = [RLMRealm defaultRealm];
[realm beginWriteTransaction];
cart = [[Cart alloc] init];
cart.shop_id = shopId;
[realm addObject:cart];
[realm commitWriteTransaction];
}
return cart;
It Crashes at [realm addObject:cart]; since version 3.18.0


Realm framework version: ?
3.18.0
Realm Object Server version: ?
Xcode version: ?
10.3
iOS/OSX version: ?
Dependency manager + version: ?
Hello,
I think we have the same issue on our side. Some devices have this crash after updating our app.
We updated Realm from 3.14.0 to 3.18.0

Realm framework version: 3.18.0
Xcode version: 11.0
iOS/OSX version:

Dependency manager + version: Cocoapod 1.8.1
Hopefully these information can help fix the issue.
Hi,
I got this issue too! Does anyone have an idea about why this crash happens after the upgrade?
Hello,
Same problem here :( please send help.
Hello,
Any update for this issue ? We are encountered the same issue.
This is probably the same thing as https://github.com/realm/realm-cocoa/issues/6268, as there's only one other assertion in that function. We will hopefully have a release out fixing that early next week.
Most helpful comment
Hello,
I think we have the same issue on our side. Some devices have this crash after updating our app.
We updated Realm from 3.14.0 to 3.18.0
Realm framework version: 3.18.0

Xcode version: 11.0
iOS/OSX version:
Dependency manager + version: Cocoapod 1.8.1
Hopefully these information can help fix the issue.