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.
Error:
failed extracting 'https://releases.amplify.aws/aws-sdk-ios/AWSConnect-2.26.6.zip' which is required by binary target 'AWSConnect': .../Library/Developer/Xcode/DerivedData/MyApp-cbgtlihuudupsqdzyjdbyvcwkilh/SourcePackages/artifacts/extract/AWSConnect is not a directory
The following steps resolve the issue forcing all packages to download.
The Reset Package Cache step is the most important here. It forces all packages to download as if they where just added.