Swift Package Manager failed extracting
Nov 19, 2022
I’m getting this Package Manager error, when switching to a different branch or cloning the project. Build fails and “Clean Build Folder” doesn’t help.
Solution
The following steps resolve the issue forcing all packages to download.
- Product > Clean Build Folder
- Delete DerivedData content (Preferences > Locations > Derived Data little arrow)
- File > Packages > Reset Package Cache
- Build
The Reset Package Cache
step is the most important here. It forces all packages to download as if they where just added.