nothirst / TICoreDataSync

Automatic synchronization for Core Data apps, between any combination of Mac OS X and iOS: Mac to iPhone to iPad to iPod touch and back again.
https://github.com/nothirst/TICoreDataSync/wiki
807 stars 61 forks source link

Download Whole Store Error #52

Open mazzuna opened 11 years ago

mazzuna commented 11 years ago

Hi guys,

I am having trouble downloading an entire store from Dropbox. I experience the same problem with the iOSNotebook sample app as well (the one that's pre-prepared).

In the file TICDSDropboxSDKBasedWholeStoreDownloadOperation.m, method - (void)restClient:(DBRestClient)client loadedFile:(NSString)destPath, line 305:

  success = [[self fileManager] fileExistsAtPath:unzippedFilePath];

Success is always no. I am trying to debug the issue. But I assume there must be something wrong with my setup.

Thanks! Mazen

mazzuna commented 11 years ago

I implemented the delegate method applicationSyncManagerShouldUseCompressionForWholeStoreMoves: to return NO - and the whole store download seems to work properly now. For some reason - the compression related code is causing me trouble.

I don't know if this would be a cause - but the sample app requests root access from Drop Box. In my own app - as well as the way I tested the sample app (I modified it locally) I only request App Folder Access.

Thanks! Mazen

MrRooni commented 11 years ago

Thanks for the report Mazen. I'll have to go through the sample app and see what's going on with it.