Sub topic 3
Keeping iCloud Drive Files Available on Your Mac
This chapter assumes you can use Finder and System Settings and understand files and folders. iCloud Drive synchronizes changes between devices, but a file may exist only in iCloud until macOS downloads it.
Keeping files offline or removing local copies
In Finder, Control-click a file or folder in iCloud Drive:
- Choose Keep Downloaded to keep a local copy for offline use.
- Choose Remove Download to remove the local copy while keeping the item in iCloud.
Optimize Mac Storage can remove older local copies automatically when disk space is low. It does not delete the files from iCloud. A cloud icon means the item is online only. A download or progress icon means macOS is fetching it.
Sharing files and folders with others
Control-click an item and choose Share. Set whether invited people can edit or only view the item. Use invitation links carefully: anyone with a link may gain access if you choose that option. Removing sharing later stops access, but people may already have downloaded copies.
Version history and handling conflicts
When supported by the application, use File > Revert To or the application's version history to recover an earlier version. iCloud Drive may create a conflict copy when two devices save incompatible changes while offline. Compare both files, keep the correct content, and delete the extra copy only after checking it.
Troubleshooting sync problems
Check that both devices use the same Apple Account and have network access. Check available iCloud storage and local disk space. Wait for progress icons to finish, then restart Finder or the Mac if needed. Do not edit the same file on several offline devices. If a file remains stalled, copy its contents to a new file and check iCloud.com for the latest version.
Terminal access and exclusions
The usual local path is:
ls -la "$HOME/Library/Mobile Documents/com~apple~CloudDocs"Keep build outputs and dependency folders out of sync when appropriate:
mv node_modules node_modules.nosync
ln -s node_modules.nosync node_modulesThe .nosync suffix tells iCloud Drive not to synchronize that folder. Some tools do not handle symbolic links correctly, so test this arrangement before relying on it.
Good habits and limits
Keep a separate backup for important files. iCloud Drive synchronizes files; it is not a complete backup strategy. Avoid storing constantly changing databases, caches, or temporary build output in it. Check status icons before shutting down, and resolve conflicts before deleting anything.
Exercise
How can you free Mac disk space without deleting an iCloud Drive file?
Show answer
Control-click the item in Finder and choose Remove Download.