iCloudDocumentSync icon indicating copy to clipboard operation
iCloudDocumentSync copied to clipboard

Really slow in Xcode 9 / iOS 11

Open dpacchi86 opened this issue 6 years ago • 11 comments

This library worked like a charm under xcode 8 and iOS 10, now that I opened the project with Xcode 9 and iOS 11 iCloud sync is really slow and blocks the main thread a lot. I already have tried many approaches like dispatching on a different thread (Not possible by the iCloud API) and trying to make as few syncs as possible... What could it be? Thanks!

dpacchi86 avatar May 21 '18 09:05 dpacchi86

I have the same issues, did you manage to resolve that?

Keith-Hon avatar May 23 '18 07:05 Keith-Hon

Hi

I haven’t really.. I rolled back to a previous version of the library and wiped out my app iCloud container. That seems to have fasten things up like they were before but It’s not a real solution to the problem.

Bye Dario

Il giorno 23 mag 2018, alle ore 09:29, Keith Hon [email protected] ha scritto:

I have the same issues, did you manage to resolve that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iRareMedia/iCloudDocumentSync/issues/118#issuecomment-391248508, or mute the thread https://github.com/notifications/unsubscribe-auth/AIk-WNC7i5qwJV4eTvw2A-N3EOs_G5l5ks5t1Q_2gaJpZM4UGqp2.

dpacchi86 avatar May 23 '18 07:05 dpacchi86

it's real slow if user has a large amount of files to sync

Keith-Hon avatar May 23 '18 07:05 Keith-Hon

Exactly, even if you have to sync just 1 file but you have hundreds on the cloud it’s slow. I don’t know what to do honestly…

Il giorno 23 mag 2018, alle ore 09:41, Keith Hon [email protected] ha scritto:

it's real slow if user has a large amount of files to sync

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iRareMedia/iCloudDocumentSync/issues/118#issuecomment-391251528, or mute the thread https://github.com/notifications/unsubscribe-auth/AIk-WIjwAuUOsdmIQE6CiUnF0Veb9tnqks5t1RKbgaJpZM4UGqp2.

dpacchi86 avatar May 23 '18 07:05 dpacchi86

How did you rolled back to previous version? @dpacchi86

kundanjadhav avatar Aug 11 '18 19:08 kundanjadhav

I have made some code changes in iCloud.m. If anybody need it please let me know.

kundanjadhav avatar Aug 11 '18 19:08 kundanjadhav

I have made some code changes in iCloud.m. If anybody need it please let me know.

can send me the iCloud.m file? my email address is [email protected]

Thanks.

ongkuanpin avatar Oct 14 '18 08:10 ongkuanpin

I have made some code changes in iCloud.m. If anybody need it please let me know.

@kundanjadhav @ongkuanpin Do you still have the file? Could really use it, my address is [email protected]

robertmanea avatar Apr 15 '19 12:04 robertmanea

@robertmanea and @ongkuanpin sorry for late responding guys. PFA icloud.m.zip

kundanjadhav avatar Apr 16 '19 09:04 kundanjadhav

@robertmanea and @ongkuanpin sorry for late responding guys. PFA icloud.m.zip

Thanks a ton. Do you have any idea how to tell when all files are finished in the enumerate block? Asking because it's kinda dragging on, so I was thinking of adding a loading indicator up til it's done. I know we have the [iCloudFilesDidChange: withNewFileNames:] delegate method, but it's not consistent (just tested and only got half of my files if I retrieve immediately after this is called).

robertmanea avatar Apr 16 '19 11:04 robertmanea

See recent changes from PR #95, which should fix some of these issues.

Sam-Spencer avatar Jun 10 '19 16:06 Sam-Spencer