-
Type: Bug
-
Resolution: Fixed
-
Priority: 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