Skip to content

Crash on iOS 13 device when building with Xcode 16.1  #8723

@ihschan

Description

@ihschan

How frequently does the bug occur?

Always

Description

When I use Xcode 16.1 with Realm version 10.54.1, to build to a real device on iOS 13.6.1,
app crashed on initializing Realm.Configration.
I can reproduce it on a clean new project as the steps provided below, so the crash reason not belongs to my project code.
And on iOS 17, iOS 18 devices, it won't crash.

Screenshot 2024-12-02 at 18 44 30 Screenshot 2024-12-02 at 18 46 21

I tried downgrade to v10.49.2 and it doesn't crashed. It seams like starting crash after v10.49.3

And I have tried the same reproduce project with same Realm version in Xcode 16.0, it doesn't crash.

Stacktrace & log output

[Stacktrace]


[Logs]
2024-12-02 18:14:52.069052+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Looking up debug dylib relative path
2024-12-02 18:14:52.069382+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Found debug dylib relative path string `RealmCrashTest.debug.dylib`
2024-12-02 18:14:52.069395+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Looking up debug dylib entry point name
2024-12-02 18:14:52.069401+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] No debug dylib entry point name defined.
2024-12-02 18:14:52.069407+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Looking up debug dylib install name
2024-12-02 18:14:52.069413+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Found debug dylib install name string `@rpath/RealmCrashTest.debug.dylib`
2024-12-02 18:14:52.069420+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Looking for Previews JIT link entry point.
2024-12-02 18:14:52.069726+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] No Previews JIT entry point found.
2024-12-02 18:14:52.069734+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Gave PreviewsInjection a chance to run and it returned, continuing with debug dylib.
2024-12-02 18:14:52.069740+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Looking for main entry point.
2024-12-02 18:14:52.069746+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Opening debug dylib with '@rpath/RealmCrashTest.debug.dylib'
2024-12-02 18:14:52.070502+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Debug dylib handle: 0x100d98230
2024-12-02 18:14:52.070518+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] No entry point found. Checking for alias.
2024-12-02 18:14:52.070527+0900 RealmCrashTest[505:38962] [PreviewsAgentExecutorLibrary] Calling provided entry point.

Can you reproduce the bug?

Always

Reproduction Steps

  1. Create a new project with Xcode 16.1
  2. Add realm package (ver. 10.54.1) with SPM
  3. Choose add RealmSwift only in the SPM window
  4. Change RealmSwift to Embed & sign
  5. In viewDidLoad function in the ViewController template file, add let realm = try? Realm(configuration: .defaultConfiguration)

Version

10.54.1

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 13.6.1

Build environment

Xcode version: ...
Dependency manager and version: ...

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