CBL Mac error "CBLModel has incompatible superclasses" with lldb po command.

236 views
Skip to first unread message

Brendan Duddridge

unread,
Jul 28, 2015, 4:13:46 PM7/28/15
to Couchbase Mobile
Hi,

Whenever I try to print an object in Xcode while my app is paused inside one of my model objects, I get the following error:

(lldb) po self

error: class 'CBLModel' has incompatible superclasses

note: inherits from superclass 'MYDynamicObject' here

error: 1 errors parsing expression


Is there anything I can do to prevent this?

It's quite odd because I can use the GUI in the source code editor when you hover over a property, then click the "i" button to print out the object. But it's not always possible to do that, especially since @dynamic properties don't seem to show up in the property inspector popover, so it's nice to be able to just print them. I believe this may be an issue with building from source though as I remember testing it out with the cocoa pods build at one point and I didn't have this issue.

So not sure if I built it wrong, although I didn't do anything more than pull the source down, then use the Archive command to build CBL Mac, then pull the framework out of the package and stick it where my app can reference it.

FYI, I'm using Xcode 7 on El Capitan beta 5, but this has been an issue for a while now.


Thanks,

Brendan

Jens Alfke

unread,
Jul 28, 2015, 4:25:12 PM7/28/15
to mobile-c...@googlegroups.com
I’ve seen this too (on Yosemite) but haven’t tried to troubleshoot it yet. As far as I know it’s an lldb bug. Does it persist in Xcode 7 beta 4?

—Jens

Brendan Duddridge

unread,
Jul 28, 2015, 10:30:22 PM7/28/15
to Couchbase Mobile, je...@couchbase.com
Hi Jens,

Yes, I'm using Xcode 7 beta 4.

Well, at least it's not just me.

Thanks,

Brendan

Ben Kennedy

unread,
Apr 22, 2016, 7:02:57 PM4/22/16
to Couchbase Mobile, je...@couchbase.com
Was there any resolution to this? I'm seeing this same problem in both Xcode 7.2.1 and Xcode 7.3. It effectively leaves me unable to debug a method on one of my CBLModel subclasses. Argh.

Jens, I found a posting you made to xcode-users last year on the same subject at about the time, to which Jim Ingham replied confirming it sounded like an LLDB bug, but there were no further messages in the thread. Did anything become of it?

b

Jens Alfke

unread,
Apr 27, 2016, 11:12:12 AM4/27/16
to Ben Kennedy, Couchbase Mobile

On Apr 22, 2016, at 4:02 PM, Ben Kennedy <ben.k...@kashoo.com> wrote:

Was there any resolution to this? I'm seeing this same problem in both Xcode 7.2.1 and Xcode 7.3. It effectively leaves me unable to debug a method on one of my CBLModel subclasses. Argh.

I thought I’d filed a bug report with Apple, but I just searched through my open and closed issues on bugreport.apple.com and I can’t find it. (I also haven’t run into the problem in a while, so I must have forgotten about it…) You should definitely file a bug report if it’s still happening to you.

—Jens
Reply all
Reply to author
Forward
0 new messages