Swift Package Manager failed extracting

Asil Arslan
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.

Photo by CHUTTERSNAP on Unsplash

Solution

The following steps resolve the issue forcing all packages to download.

  1. Product > Clean Build Folder
  2. Delete DerivedData content (Preferences > Locations > Derived Data little arrow)
  3. File > Packages > Reset Package Cache
  4. Build

The Reset Package Cache step is the most important here. It forces all packages to download as if they where just added.

--

--