realm-swift: Carthage-related: warning: Swift error in module RealmSwift when trying to debug/print an object in the console
Expected Results
Be able to print the contents of let things = realm.objects(Thing.self) from the code sample(I know now there should be nothing in there but this is not relevant to the issue IMO).
Actual Results
I get this warning:
warning: Swift error in module RealmSwift. Debug info from this module will be unavailable in the debugger.## Steps to Reproduce
What are steps we can follow to reproduce this issue?
I just hit a breakpoint in an IBAction call. An then try po things in the console.
Code Sample
import UIKit
import RealmSwift
class Thing: Object {
dynamic var name = "Thing"
}
class SomeThing: Thing {
dynamic var number = 0
}
class NoThing: Thing {
dynamic var iAmEmpty = true
}
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let some = SomeThing()
let no = NoThing()
let realm = try! Realm()
try! realm.write {
realm.add(some)
realm.add(no)
}
}
@IBAction func tryStuff(_ sender: Any) {
let realm = try! Realm()
let things = realm.objects(Thing.self)
for thing in things {
print(thing.name)
}
}
}
Version of Realm and Tooling
In the CONTRIBUTING guidelines, you will find a script, which will help determining these versions.
Realm version: 2.4.2
Xcode version: 8.2.1
iOS/OSX version: iOS 10.2 SImulator / iOS 10.2.1 Device
Dependency manager + version: Carthage 0.18.1
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (8 by maintainers)
We’ll continue to distribute
Realm.frameworkandRealmSwift.frameworkas binaries via Carthage, as Carthage offers a way to force to build from source (--no-use-binaries) for those who want it, while also retaining the advantages of prebuilt frameworks.@jpsim I have another reply on the radar from Apple:
In that case I guess you would want to change the Carthage preferences of the project to fetch the code from GitHub and then build locally.
Radar submitted.
You should have and email 😃