Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-1246

Realm crashes as it refers to the SwiftUI framework when run on older iOS versions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Run an app that uses RealmSwift as a dependency on an iOS 11.4 simulator.

      Expected Results

      Project can be run and it does not crash.

      Actual Results

      Launching the app in the simulator crashes with the following error message:

      dyld: Library not loaded: /System/Library/Frameworks/SwiftUI.framework/SwiftUI
        Referenced from: /.../myApp.app/Frameworks/RealmSwift.framework/RealmSwift
        Reason: image not found
      

      This issue seems to affect all version of iOS 11 and 12 that do not contain the SwiftUI framework. The bug was first introduced in release v10.6.0 and affects all later releases. Last working release is therefore v10.5.2.

      Steps for others to Reproduce

      I suppose this can be reproduced simply by creating a new iOS application that uses the latest (10.7.4) RealmSwift as a dependency.

      Code Sample

      N/A

      Version of Realm and Tooling

      Realm framework version: 10.7.4

      Xcode version: 12.5

      iOS/OSX version: iOS 11.4 simulator

      Dependency manager + version: CocoaPods 1.10.1

            Assignee:
            jason.flax@mongodb.com Jason Flax
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: