Xcode 16.1 suddenly stopped fetching Swift package dependencies with a 'Fatal: cannot use bare repository' error. The root cause is SourceTree adding a `bareRepository = explicit` entry to the global `~/.gitconfig` file. Removing or commenting out that line and restarting Xcode resolves the issue.

2m read timeFrom danielsaidi.com
Post cover image