What could be the reason for this crash in my iOS app EXC_BAD_ACCESS KERN_PROTECTION_FAILURE

My app is using RealmSwift (v10.48.1) and i’m seeing repetitive crashes on initial app launch and the error is below

  1. EXC_BAD_ACCESS KERN_PROTECTION_FAILURE
  2. SIGABRT ABORT

Hi @SANDIP_PUND ,

Could you please try to update the SDK? The latest Swift release is 10.54.1.

These errors are too generic to provide a diagnosis: can you collect a full stack trace, that would at least give an idea whether this is indeed related to Realm, and which part of the code is failing?

If you’ve a Support contract, it would also be better if you engage with us there, to be followed properly.

@SANDIP_PUND

It may also help to see the code that’s crashing, not just the error. A small sample snippet that duplicates the issue would be helpful. We ran 10.48.1 for quite a while under different use cases and didn’t have an issue.

@Jay @Paolo_Manna -
We build the app using xcode16.1 with realmswift v10.48.1. We think this could be the reason for crash. We have build the app with xcode15.2 and realmswift v10.48.1 and release the app. I will watch out for the crash and update here if anything comes.

We will update SDK to 10.54.1 in upcoming release.

Thank you for your support and appreciated it.

Hi @SANDIP_PUND ,

Yes, that could have been an issue, according to the release notes, 10.48.1 wasn’t (yet) compatible with Xcode 16

No problem at all, you’re welcome!