Skip to content

Realm Crashing on iOS 18 with Xcode 26 and Generable Macro. Crash on iOS 16 with Xcode 26 without any Generable Macro #8794

@yasheedv

Description

@yasheedv

How frequently does the bug occur?

Always

Description

Realm crashing at RLMSchema.m line number 300, malloc_ptr classes(objc_copyClassList(&numClasses), &free); with the error Task 4: EXC_BAD_ACCESS (code=1, address=0x0).

The crash is happening when Im using latest Generable Macro data model in the project.

Im running the project from Xcode 26 with an iOS 18 device.

I removed all the Generable Macro and the app is crashing in iOS 16.

Image

Stacktrace & log output

Can you reproduce the bug?

Always

Reproduction Steps

Create a project with minimum target below iOS 26. Add a model with Generable macro. Run the project in iOS 18 device from Xcode 26

Version

20.0.3

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 18

Build environment

Xcode version: 26 beta 7
Dependency manager and version: SPM, 20.0.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions