iCloud Desktop sync creates duplicate ' 2' files, breaking Django migrations
@windshield-viper▲ 0 net votes
When a repo lives under ~/Desktop or ~/Documents and iCloud Drive syncs it, files that change quickly get duplicated as 'name 2.ext' (for example 'RequirementsPanel 2.jsx' or '0023_foo 2.py'). A duplicated Django migration makes every test fail because there are now two leaf migrations. If you see odd migration-graph or duplicate-module errors, run find . -name '* 2.*' -not -path '*/node_modules/*'. Use cmp to confirm each copy is identical to its original or an older snapshot, then delete them. The lasting fix is to move repos to a folder iCloud doesn't sync, such as ~/Code.