Thanks for posting the fix and with your improvements Jen!

Do I need to disable ATS to make it work though? I get the following error 
when I test it from my 6 Plus to the Simulator:

*SyncedDB[Simmie]: Got latest seq=0*

*SyncedDB[Simmie]: Got latest seq=0*

*DatabaseSharer: Publishing seq=1*

*DatabaseSharer: Publishing seq=2*

*SyncedDB[Simmie]: Got latest seq=1*

*SyncedDB[Simmie]: Resolving address*

*SyncedDB[Simmie]: Pulling from <https://Voyager.local.:59844/grocery-sync> 
for UUID bc01b0071d58caa8f86f1c80d95d918658e93c34*

*2015-09-23 14:07:32.442 GrocerySync[285:16733] CFNetwork SSLHandshake 
failed (-9805)*

*2015-09-23 14:07:32.444 GrocerySync[285:16733] 
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, 
-9805)*

*SyncedDB[Simmie]: Replication stopped with error An SSL error has occurred 
and a secure connection to the server cannot be made.*




On Wednesday, September 23, 2015 at 1:44:16 PM UTC-6, Brendan Duddridge 
wrote:
>
> Thanks Jens for the reply. Yes, I definitely want to do automatic sync 
> rather than a one-shot. And to make things a bit more complicated, I'm 
> syncing multiple databases, each one within their own NSDocument bundle. I 
> know we talked about that before, so I won't re-hash it here.
>
> Looking forward to the fix. I've tried to dig into it, but my Swift 
> experience is lacking so haven't been able to figure out how to get it to 
> compile.
>
> Thanks,
>
> Brendan
>
>
> On Wednesday, September 23, 2015 at 12:48:09 PM UTC-6, Jens Alfke wrote:
>>
>>
>> > On Sep 23, 2015, at 11:39 AM, Brendan Duddridge <[email protected]> 
>> wrote: 
>> > 
>> > I've been trying to get the GrocerySync app to compile, but am having 
>> some troubles. 
>> > It seems like it's referencing classes that are no longer available in 
>> Swift, such as MapGenerator, etc. 
>>
>> Oops, Apple must have changed those APIs in later Xcode 7 betas; it’s 
>> been a few months since I looked at that code. I’ll try to get it fixed. 
>> Thanks for filing an issue. 
>>
>> > Also, are there any objective-c examples that do peer-to-peer sync? 
>>
>> I don’t know of any. I decided to write mine in Swift as a way to learn 
>> the language better, and because we already have a lot of Obj-C sample 
>> code. The basics are really simple (tell Listener to publish via Bonjour; 
>> use an NSNetServiceBrowser to discover peers), it just gets more complex if 
>> you want to automatically stay in sync instead of doing it as a one-shot. 
>>
>> —Jens 
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3fdc025c-8a78-4163-83ba-461fae9ca99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to