Have you ever tried adding a Swift package to your Xcode project, only to see this error message?
“The remote repository could not be accessed. Make sure a valid repository exists at the specified location and that the correct credentials have been supplied.”
The Solution:
- Cleaned up DerivedData.
- Deleted the file
/Library/Caches/org.swift.swiftpm
. - Download Xcode 15 Beta version.
- Reset SPM cache with the new Xcode.
- Double-check the Repository URL (should contain .git extension)
Original URL: https://github.com/Wootric/WootricSDK-iOS
Corrected URL: https://github.com/Wootric/WootricSDK-iOS.git
Happy coding!