New to couchbase-build error on IOS when using 64 bits

177 views
Skip to first unread message

Sandra

unread,
Feb 7, 2014, 12:52:02 PM2/7/14
to mobile-c...@googlegroups.com
Hello,
   I'm absolutely new to couch base, I'm trying to install it in my IOS 7 project, I followed this guide:
   It works perfectly but I need it to work on a 64 bits iPad retina, so in that case the build fails. Reason: "missing required architecture for x_86_64"
   I found this other guide which I suspect would fix the issue:

but the first step is to change the schema to CBL IOS which is not available in my project.
   Would anybody please provide me some help? Is Couchbase able to work on a 64 bits iPad Retina?

BR,
Sandra

Jens Alfke

unread,
Feb 7, 2014, 2:37:01 PM2/7/14
to mobile-c...@googlegroups.com
On Feb 7, 2014, at 9:52 AM, Sandra <txm...@gmail.com> wrote:

   It works perfectly but I need it to work on a 64 bits iPad retina, so in that case the build fails. Reason: "missing required architecture for x_86_64"

The framework we ship is missing the 64-bit x86 code for the simulator. That's issue #242, which I haven't had a chance to look at yet, sorry.

   I found this other guide which I suspect would fix the issue:
but the first step is to change the schema to CBL IOS which is not available in my project.

It should be there. What do you see when you pull down the Schemes pop-up in the project window? "CBL iOS" should be the second item:


—Jens

Charlie Woloszynski

unread,
Feb 17, 2014, 8:19:59 AM2/17/14
to mobile-c...@googlegroups.com
I just pulled the latest and I don't see a CBL iOS, I do see a 'Continuous iOS' and a 'CBL iOS Library'.  Is there a different version I should be looking at?

Jens Alfke

unread,
Feb 17, 2014, 12:38:04 PM2/17/14
to mobile-c...@googlegroups.com

On Feb 17, 2014, at 5:19 AM, Charlie Woloszynski <cwolos...@gmail.com> wrote:

I just pulled the latest and I don't see a CBL iOS, I do see a 'Continuous iOS' and a 'CBL iOS Library'.  Is there a different version I should be looking at?

Hmm, looks like in a clean checkout of the project this scheme shows up as "Continuous iOS", even though the target is named "CBL iOS" (and in my copy of the project I must've renamed the scheme to match.)

So yes, the correct scheme to select is "Continuous iOS". I'll update the wiki page.

—Jens

Charlie Woloszynski

unread,
Feb 17, 2014, 4:51:59 PM2/17/14
to mobile-c...@googlegroups.com
Ok, thanks.  I feel much better knowing I am on the right path.  After that and following the other instructions, I have a basic app running locally and operating in both the simulator and on an iOS7 device.  

Very exciting stuff ....

Sandra

unread,
May 27, 2014, 2:19:05 PM5/27/14
to mobile-c...@googlegroups.com
Hello Jens,
    In regards to:
"The framework we ship is missing the 64-bit x86 code for the simulator. That's issue #242, which I haven't had a chance to look at yet, sorry."
   Would you please let me know if this is already fixed?
   I need to run an application demo on an ipad air which is 64 bits and I'm getting an error in my application when compiling it is related to couch base on 64 bits
   I appreciate your help.
BR,
Sandra

Jens Alfke

unread,
May 27, 2014, 2:50:12 PM5/27/14
to mobile-c...@googlegroups.com

On May 27, 2014, at 11:19 AM, Sandra <txm...@gmail.com> wrote:

> "The framework we ship is missing the 64-bit x86 code for the simulator. That's issue #242, which I haven't had a chance to look at yet, sorry."
> Would you please let me know if this is already fixed?

Yes, the 1.0 release includes the 64-bit binaries in the regular framework.

> I need to run an application demo on an ipad air which is 64 bits and I'm getting an error in my application when compiling it is related to couch base on 64 bits

If you’re using 1.0, there shouldn’t be a problem. What are the errors?

—Jens

Sandra

unread,
May 29, 2014, 11:03:46 AM5/29/14
to mobile-c...@googlegroups.com
Thank you Jens, I'll update the framework and let you know in case I still face problems.
BR,
Sandra

Sandra

unread,
May 29, 2014, 12:25:31 PM5/29/14
to mobile-c...@googlegroups.com
Jens, I just updated the framework and works fine except for this line:

NSArray* repls = [self.database replicationsWithURL: newRemoteURL exclusively: YES];

it's not compiling, the error says:

No visible @interface for `CBLDatabase` declares the selector 'replicationsWithURL: exclusively`

Did I miss something?
Thanks for your help.
Sandra

Jens Alfke

unread,
May 29, 2014, 6:02:28 PM5/29/14
to mobile-c...@googlegroups.com

On May 29, 2014, at 9:25 AM, Sandra <txm...@gmail.com> wrote:

NSArray* repls = [self.database replicationsWithURL: newRemoteURL exclusively: YES];

it's not compiling, the error says:

No visible @interface for `CBLDatabase` declares the selector 'replicationsWithURL: exclusively`


That’s an old method that was deprecated and then removed during the beta cycle. What code are you trying to compile?

—Jens

Sandra

unread,
May 29, 2014, 6:16:24 PM5/29/14
to mobile-c...@googlegroups.com
I took it from the grocery-sync example but some months ago, shall I download the example again so that I check the changes?

Jens Alfke

unread,
May 29, 2014, 6:21:39 PM5/29/14
to mobile-c...@googlegroups.com

On May 29, 2014, at 3:16 PM, Sandra <txm...@gmail.com> wrote:

I took it from the grocery-sync example but some months ago, shall I download the example again so that I check the changes?

Yup, I’ve updated Grocery Sync a couple of times to update deprecated API calls.

—Jens

Sandra

unread,
May 30, 2014, 1:34:11 PM5/30/14
to mobile-c...@googlegroups.com
Thanks a lot!

Sandra

unread,
May 30, 2014, 3:43:51 PM5/30/14
to mobile-c...@googlegroups.com
Hello Jens,
   I updated the code to remove the deprecated api calls, if I run the application in iOS simulator, the connection to the database works perfectly, but if I tell xcode to run it in the real iPad, I'm getting this error:

Could not connect to the server. (error=Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo=0x1702e2200 {NSUnderlyingError=0x170242d00 "Could not connect to the server.", NSErrorFailingURLStringKey=http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64, NSErrorFailingURLKey=http://127.0.0.1:4984/srestaurant/_local/d0eaf494aaa9a6ba54e5cc4b6ebf0f157bcb2d64, NSLocalizedDescription=Could not connect to the server.})

2014-05-30 14:32:27.668 Botellon3[5903:60b] ALERT: Error while synchronizing DB



This is the first time I use this iPad as testing device.

I appreciate your advice, as I have no clue why the result is different in iOS simulator than in the real device. Anything I need to configure in the iPad?

Thanks a lot,

Sandra


Sandra

unread,
May 30, 2014, 7:27:42 PM5/30/14
to mobile-c...@googlegroups.com
Hello Jens, just as a test, I took grocery sync and pointed it to my database and I got the same error on iPad, not on iOS simulator.
What could it be?
BR,
Sandra

Sandra

unread,
May 30, 2014, 9:02:19 PM5/30/14
to mobile-c...@googlegroups.com
Hello Jens, I don't understand what happened but I installed sync gateway in another computer instead of my localhost and it ran perfectly.
Weird!
BR,
Sandra

Pascal

unread,
May 30, 2014, 10:39:51 PM5/30/14
to mobile-c...@googlegroups.com
That's because you pointed your app to 127.0.0.1. On the Mac that works because the server is indeed running on localhost, on the iPad this of course fails. ;)
Reply all
Reply to author
Forward
0 new messages