Integrating Grocery Sync example

I was mistaken about that - NSLog does work.
Yes you’re right, CBLDocument* doc = [database createDocument]; is returning nil.
Can I check for an error there?