I faced this problem after I installed Xcode 14.0.
Deleting org.swift.swiftpm worked for me:
-
Make sure that anything related to SPM is not running including Xcode. Close them all before you delete anything.
-
Go to directory and delete the entire
org.swift.swiftpmdirectory (Not onlycollectiondirectory, but the wholeorg.swift.swiftpmdirectory) and if there is also aorg.swift.swiftpm.lock, delete that one as well.
