Hi, I cannot resolve package version and it gives error:
Git command 'git -C /Library/Caches/org.swift.swiftpm/repositories/-a59fa5f1 config --get remote.origin.url' failed: fatal: cannot change to ' /Library/Caches/org.swift.swiftpm/repositories/-a59fa5f1': No such file or directory
I have 3 privates packages from my company I cannot share. This error happens to all 3 packages while the public packages resolved successfully.
Sometimes the error would be:
GitShellError(result: <AsyncProcessResult: exit: terminated(code: 128), output:
>)
So far I have tried:
- Using Resolve package versions/Reset package caches in Xcode
- Running
xcodebuild -resolvePackageDependencies
in terminal. - Remove, re-add the packages.
- Delete, reinstall Xcode.
I’m using Xcode 16.4.
What can I do to resolve this issue?