Has anyone had any success using CloudKit in an application that is not a GUI application, such as a command line utility. The chief difference between a command line utility and other applications is that it doesn't start NSApplicationMain, at least not by default.
In my attempt to do this, I am getting CKError "Internal Error" <1/2005>. Based on some searching I've done, this might be related to entitlements.