Actually the only code I had to change was to +[CBLManager defaultDirectory], to use the Caches directory instead of Application Support when running on tvOS. (Because that’s the only writeable directory.) Everything else appears to be compatible between
iOS and tvOS.
And really, the changes to the project were just to duplicate a whole bunch of iOS targets, rename them, change their SDKs to tvOS, and fix their dependencies and interlinkage. Which was still a total pain in the ass (one of the few times I’ve wished that
we used makefiles instead of an IDE, because copy/paste and search/replace would be so much easier!)
—Jens