Ok. never mind.

Putting a symbolic breakpoint at -[CBLManager close] dumped out the 
backtrace and I saw the mistake I made.

Turns out I was closing the database in applicationShouldTerminate which 
executes before applicationWillTerminate.

Sorry for the post. And thanks for your help.

Brendan

On Monday, October 16, 2017 at 3:38:32 PM UTC-6, Brendan Duddridge wrote:
>
> Hi Jens,
>
> Thanks for your response.
>
> I tried that.
>
> Unfortunately for some reason I can't get CBL to stop on any breakpoints.
>
> I'm building (command-b) from the CBL Mac scheme and then going to 
> Products, show in Finder, then copying the CouchbaseLite.framework into my 
> project.
>
> Then I run my app, then quit my app. Xcode only stops at my own 
> breakpoints. None from the Couchbase Lite project I have opened also.
>
> I'm pretty sure this used to work a couple Xcodes ago. I'm using Xcode 9 
> now on High Sierra.
>
> Thanks,
>
> Brendan
>
> On Monday, October 16, 2017 at 1:09:50 PM UTC-6, Jens Alfke wrote:
>>
>> Try setting a breakpoint at “-[CBLDatabase close]” and look at the 
>> backtrace when it’s hit when you quit the app. 
>>
>> (I think that’s the correct selector. If it doesn’t get hit, try -close: 
>> or -_close) 
>>
>> —Jens
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/63b229ff-f307-4195-9d91-53d4ef9f4137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to