New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RLMException: primary property name
on RealmSwiftPermissionRole
crash when getting a realm instance
#6181
Comments
name
on RealmSwiftPermissionRole
when getting a realm instancename
on RealmSwiftPermissionRole
crash when getting a realm instance
Got the same error with Xcode 11 beta 2. |
Got the same error with Xcode 11 beta 2 |
I can't reproduce this. I cloned the repository, ran |
@bearjaw Interesting. I got the exact error as you several times, then I ran |
My project no longer has this issue now. The weird thing is that I didn't do anything after my prior post. I didn't quit Xcode 11 beta 2 when I ran Today I didn't get the update available notice. And the project worked. |
Perhaps after you ran |
Got the same error with Xcode 11 beta 2. |
I had an earlier version installed on device and simulator and in both cases the app would crash instantly. Even resetting and newly installing the app would lead to the same result. I noticed that when I changed how I accessed Realm it wouldn’t crash. For me it can’t be an ‘Xcode didn’t notice that the files had changed’ because a clean build would produce the same error. Even clearing the pod cache & redownloading Realm did not change the outcome. It’s even weirder that @buffsldr couldn’t reproduce it because for me and my colleagues it happened always when building through Xcode 11. |
I had this issue on Xcode 11 beta 2 iOS simulator with iOS 13. |
Doesn't occur anymore so I assume it's been fixed. I closed the issue. |
Hey - looks like you forgot to add a T:* label - could you please add one? |
Goals
Access a realm instance and add objects when the view is loaded.
Expected Results
The app should start and objects should have been added to the database.
Actual Results
The app crashes because it's unable to find the primary property
name
onRealmSwiftPermissionRole
. This is a default class provided by the Realm framework.It only seems to be an issue when building and running the app through the current Xcode beta.
I have encountered this issue in other apps as well.
The app itself does not use any Realm Platform related objects.
It seems to be quite a weird error considering that apps run fine on older versions of Xcode with the same RealmSwift version.
Stacktrace:
Steps to Reproduce
=> Immediately after the app launches it crashes with the above provided error.
This always happens and it seems to be triggered the first time I try to a get a realm instance through
try Realm()
.Code Sample
A sample project can be found here https://github.com/bearjaw/RBSRealmBrowser
Version of Realm and Tooling
Realm framework version: 3.16.2
Xcode version: 11 b1
iOS/OSX version: 13.0 b1
Dependency manager + version: CocoaPods 1.7.2
The text was updated successfully, but these errors were encountered: