I have suddenly become unable to print out object properties or call methods inside of lldb. The only thing that prints out is:
error: class '<ClassName>' has incompatible superclasses
note: inherits from superclass 'NSObject' here
This is true for even the most basic object types, such as: NSArray, NSDictionary, and NSString. Here's a specific example:
(lldb) po functie.length
error: class 'NSString' has incompatible superclasses
note: inherits from superclass 'NSObject' here
error: 1 errors parsing expression
The only methods that are available are those available in NSObject, such as -class. Extending from the previous example:
(lldb) po [functie class]
__NSCFString
If anybody has any idea what the problem is, your input would be greatly appreciated. Thank you.
Try this one:
Select your project in the left project navigator.
Switch to the Build Settings
tab.
Search for Debug Information Format
.
Set the value for Debug to DWARF
.
Clean Build Folder: hold Option + Command + Shift + K
(That is ⌥ + ⌘ + ⇧ + K
).
Rebuild your project: ⌘ + R
.
Good luck.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With