I updated git sparse-checkout settings and ran git sparse-checkout reapply on an already cloned iOS project repository. git status shows that the working tree is clean, but Xcode shows many uncommitted deleted files in "Integrate" –> "Commit."
What I tried and didn't work:
- Removing Derived Data
- Removing .git/index.lock
- "Integrate" -> "Refresh file status"
- Removing Xcode's SCM caches (~/Library/Caches/com.apple.dt.Xcode, ~/Library/Developer/Xcode/UserData/SCMBlueprints)
- Cleaning targets, even with
xcodebuild -alltargets clean find . -name "*.xccheckout" -delete- Disabling and re-enabling SCM integration in Xcode Settings
How could I synchronise Xcode's representation with the underlying Git representation?