Couchbase Lite Viewer

435 views
Skip to first unread message

Victor Fernandez

unread,
Jun 1, 2015, 12:40:24 PM6/1/15
to mobile-c...@googlegroups.com
Hi
I need to browse the documents that are allocated in the local database of an iOS App (Objective-c) with Couchbase Lite. I try to use a project named "CouchbaseLite Viewer" that I had downloaded from github but when I try to run it my xcode said that I does not have a license for Mac Development (is true).Is there a way to run this project whitout that kind of license? Or another similar app that could help me whit this?

Regards! 

Zachary Gramana

unread,
Jun 1, 2015, 12:44:03 PM6/1/15
to mobile-c...@googlegroups.com
Victor,

You can download the latest pre-compiled app from the Github release page.

Best,
Zack

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0748014a-0ab3-4dd8-af40-7dcb717d60b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jens Alfke

unread,
Jun 1, 2015, 1:04:21 PM6/1/15
to mobile-c...@googlegroups.com
On Jun 1, 2015, at 9:40 AM, Victor Fernandez <vfern...@txmglobal.com> wrote:

when I try to run it my xcode said that I does not have a license for Mac Development (is true).Is there a way to run this project whitout that kind of license?

Sure, just turn off code signing in the target build settings.

—Jens

Victor Fernandez

unread,
Jun 1, 2015, 6:21:28 PM6/1/15
to mobile-c...@googlegroups.com
Thanks!

Peter LoBue

unread,
Jun 27, 2015, 3:58:32 PM6/27/15
to mobile-c...@googlegroups.com

Hi, I stumbled across this seemingly awesome CBL Viewer, now trying to get it to work. Is the latest release (0.4) supposed to open .cblite files created by the iOS simulator and Couchbase Lite 1.1? When trying to open the .cblite file, I get this error:

The document "database.cblite" could not be opened.

In case the latest build is outdated, I've also been trying to run the project from Xcode, but ran into an issue there.

Thanks!

Jens Alfke

unread,
Jun 28, 2015, 7:49:17 PM6/28/15
to mobile-c...@googlegroups.com

On Jun 27, 2015, at 12:44 PM, Peter LoBue <pej...@gmail.com> wrote:

Hi, I stumbled across this seemingly awesome CBL Viewer, now trying to get it to work. Is the latest release (0.4) supposed to open .cblite files created by the iOS simulator and Couchbase Lite 1.1? When trying to open the .cblite file, I get this error:

Sorry about that! I need to update the app for Couchbase Lite 1.1. We changed the database directory layout and it’s confused about that.

I’ve just pushed a couple of revisions to update for the current layout, and to fix some compatibility issues with the latest Xcode releases.

—Jens

Peter LoBue

unread,
Jul 1, 2015, 12:56:17 PM7/1/15
to mobile-c...@googlegroups.com


Thanks Jens! I got your current revision to build. So should it work now for CBL 1.1, or is it not ready yet?

It looks like the app doesn't want to open .cblite files. When I go to File -> Open from the menu, the files are grayed out. When I try to force it to open the .cblite file, I get a new error:

The document "database.cblite" could not be opened. Couchbase Lite Viewer cannot open files in the "Couchbase Lite Viewer.app" format.

FWIW, in my iOS project that created the .cblite file, I installed couchbase-lite-ios via CocoaPods. It is version 1.1.0 (31), as stated in Pods/couchbase-lite-ios/CouchbaseLite.framework/Info.plist

OSX Yosemite 10.10.4
Xcode 6.4

Jens Alfke

unread,
Jul 1, 2015, 1:24:43 PM7/1/15
to mobile-c...@googlegroups.com
On Jul 1, 2015, at 9:56 AM, Peter LoBue <pej...@gmail.com> wrote:

Thanks Jens! I got your current revision to build. So should it work now for CBL 1.1, or is it not ready yet?

It should work for Couchbase Lite 1.1, but not for earlier versions.

It looks like the app doesn't want to open .cblite files. When I go to File -> Open from the menu, the files are grayed out. When I try to force it to open the .cblite file, I get a new error: 

CBL-1.1 databases have the extension “.cblite2”. The viewer won't open a .cblite file because Couchbase Lite would then update the database in place, replacing the old file, and I don’t want it to do that.

It sounds like the databases you’re trying to open haven’t been opened with Couchbase Lite 1.1 before. Once they are, they’ll be converted to the new format and you can view them.

—Jens

Peter LoBue

unread,
Jul 2, 2015, 2:11:35 PM7/2/15
to mobile-c...@googlegroups.com
Thanks Jens, that makes sense. I've been using CBL 1.1, running my app in the iPhone simulator, and I have yet to see a .cblite2 file. To me it looks like CBL 1.1 is creating .cblite files in the old format. Maybe I'm missing some part of the setup?

Just to check, I just did a clean git clone of Grocery-Sync-iOS, copied the file couchbase-lite-ios-community_1.1.0-31/CouchbaseLite.framework to Grocery-Sync-iOS/Frameworks, built and ran... and a .cblite file (along with .cblite.shm and .cblite.wal) was created in the simulator's Library/Application Support/CouchbaseLite directory.

Jens Alfke

unread,
Jul 2, 2015, 2:48:53 PM7/2/15
to mobile-c...@googlegroups.com

On Jul 2, 2015, at 11:11 AM, Peter LoBue <pej...@gmail.com> wrote:

Thanks Jens, that makes sense. I've been using CBL 1.1, running my app in the iPhone simulator, and I have yet to see a .cblite2 file. To me it looks like CBL 1.1 is creating .cblite files in the old format. Maybe I'm missing some part of the setup?

No, you’re right — the database file layout change is not in 1.1. I got confused because I added it a while ago, then we decided not to do it for version 1.1 and backed it out, and then we re-added it to the master branch after 1.1 was finished.

That means I need to fix the viewer app some more. Thanks for pointing this out — I actually repeated your steps and got the same result as you, and thought I’d lost my mind (or more accurately, that our build/release engineer had) until I remembered the whole tangled history…. :/

—Jens

Peter LoBue

unread,
Jul 2, 2015, 9:51:41 PM7/2/15
to mobile-c...@googlegroups.com
Ah alright! Well I'm glad I'm not going crazy either.

I reverted to your CBL Viewer commit from March 19, and now I can open the .cblite files from 1.1 and see the document IDs, although the contents are not showing up.

Any ETA on when this will be working again? ...More like days, or weeks?
Reply all
Reply to author
Forward
0 new messages