How can I reset the package cache on just one package with Swift Package Manager

To reset the cache for a single package:

  • Navigate to ~/Library/Caches/org.swift.swiftpm/repositories and deleting the folder and lock file related to the package
  • Then, in Xcode, run File-->Swift Packages-->Reset Package Caches

You can also try the solution recommended here to reset the entire cache (thanks @Bao Lei):

  • https://stackoverflow.com/a/72838880/1099193

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)