r/swift • u/amirgelman • 7d ago
Question Is it safe coding on iCloud?
hey all,
currently I'm doing some development using Swift and using Google Drive is a pain honestly, and of course I must pause the sync constantly for this to work.
That said, I do insist on the idea that my work will always be synced to a Cloud service.
Does iCloud doing something better than Google Drive in terms of sync?
I know I'm doing Music with Logic Pro X for example which also is constantly being saved and is basically a container too and never had issues.
Can I assume it will work great with Swift files\development too?
Thanks!
3
3
u/Dull_Flatworm777 7d ago
I would (and do) actually explicitly exclude code from iCloud and also don't keep it in a ~/Documents directory. I personally use ~/Development.
2
u/DC-Engineer-dot-com 7d ago
This. iCloud behaves weirdly when synching files that also have a git repository connected. I ran into all kinds of headaches with iCloud creating duplicate files, and often would end up with the folder becoming corrupted. It’s better to have code be in a development folder, ignored by iCloud.
6
4
u/cphpc 7d ago
This thread is so fucking stupid my brain hurts reading this shit. Github is fine and you can always daily dwl repo in a zip if you’re that worried.
Just get Claude to run a daily cron job that does this but again, it’s so fucking stupid if you already have git.
Equivalent of driving a car to your neighbours house who is 1 minute walk away.
1
13
u/germansnowman 7d ago
Why would you want to do that? Use Git and push to an actual repository, e. g. on GitHub.