CBL JavaScript Views

37 views
Skip to first unread message

Alex McArthur

unread,
Apr 1, 2014, 11:45:48 AM4/1/14
to mobile-c...@googlegroups.com
Hi

I followed the instructions at https://github.com/couchbase/couchbase-lite-ios/wiki/JavaScript-Views to add JS views capability but have had no success. Are there more recent instructions somewhere?

What I did:
- added CBLJSViewCompiler.m and CBLJSFunction.m to my project
- added the initialisation code [CBLView setCompiler: [[CBLJSViewCompiler alloc] init]];

I got linker errors apparently due to lack of ICU, so added the cocoapod icu4c, but that is not building. Could you please advise.

Thanks
Alex McArthur

Jens Alfke

unread,
Apr 1, 2014, 3:00:00 PM4/1/14
to mobile-c...@googlegroups.com

On Apr 1, 2014, at 8:45 AM, Alex McArthur <alexmc...@gmail.com> wrote:

I got linker errors apparently due to lack of ICU, so added the cocoapod icu4c, but that is not building. Could you please advise.

On iOS you just link against the system ICU library.
I know one of our sample apps uses the JS query support; maybe the PhoneGap one?

—Jens

Alex McArthur

unread,
Apr 2, 2014, 6:42:24 AM4/2/14
to mobile-c...@googlegroups.com
Thanks, that worked.
Reply all
Reply to author
Forward
0 new messages