Strange warning when trying to print Swift object

Originator:ivankonov.services
Number:rdar://30646008 Date Originated:21-Feb-2017
Status:Open Resolved:No
Product:Developer Tools Product Version:Xcode 8.2.1
Classification:Open Reproducible:Always
 
Summary:
I am using Realm(alternative to CoreData - realm.io) for a project. When I try to print an object created by the framework I have this warning:

warning: Swift error in module RealmSwift.
Debug info from this module will be unavailable in the debugger.## Steps to Reproduce

I think an important remark is that the framework used in the sample project attached to this report was built using Carthage. A very popular dependency manager for Apple platforms. I am sure you guys know about it.

I have submitted and issue on their GitHub - https://github.com/realm/realm-cocoa/issues/4643

According to their team there might be an issue with dynamic frameworks built using xcode-build which is used by Carthage under the hood.

Steps to Reproduce:
1. Run the sample project
2. Hit a break point
3. Print an object in the LLVM console.

Expected Results:
Print object description

Actual Results:
It is printed but first the warning described above appears in the console.

Version:
Xcode 8.2.1, macOS 10.12.3

Comments

Apple Engineers Reply

This often happens if lldb doesn't match the version of the compiler which compiled the module. Did you build all the modules in this project?

By ivankonov.services at March 9, 2017, 7:09 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!