I'm the author of ObjCMongoDB. Thanks for your interest in the library and the heads-up about your question.
To fix the first problem, change the #import
line in MongoConnection+Diagnostics.h
to #import "ObjCMongoDB.h"
. (That's been fixed in master, subsequent to the last release.)
The other problem is happening because v0.9.6 is based on an earlier version of the Mongo C driver than the files you're using, which I'm guessing you downloaded or cloned yourself from the 10gen repository on Github.
The C driver is set up as a submodule, so when you clone ObjCMongoDB you should see an empty mongo-c-driver
folder.
From your repository root, you can run this command:
git submodule update --init
which should load the correct version of Mongo C driver (my fork as of v0.9.6, but the next release will use the official version). I'm adding a note to the readme about this step.
Once you add those versions of the .[ch]
files to your project instead, it should build correctly.