Hello, I have the same problem trying to import any swift package.
It fails from Xcode SPM and even from command line using the command xcodebuild -resolvePackageDependencies.
The error:
fatal: cannot use bare repository '/Users/user/Library/Caches/org.swift.swiftpm/repositories/Factory-25e11c6f' (safe.bareRepository is 'explicit')
Couldn’t get the list of tags:
fatal: cannot use bare repository '/Users/user/Library/Developer/Xcode/DerivedData/TestSPM-fgkuhljabyfncxcrtjxfpeyobjus/SourcePackages/repositories/Factory-25e11c6f' (safe.bareRepository is 'explicit')
Any solution?
Thanks
Post
Replies
Boosts
Views
Activity
I removed the following entry from ~./.gitconfig file:
[safe]
bareRepository = explicit
and now it is working.