title: Package.resolved file is corrupted or malformed
body: <p>I have a build error saying that all my SPM packages are missing. I decided to remove and re-add each package to the project, but each attempt at adding a package gives me the following error:</p>
  <blockquote>
  <p>Package.resolved file is corrupted or malformed; fix or delete the file to continue</p>
  </blockquote>
  <p>I've tried deleting the <code>Package.resolved</code> file and letting it regenerate (it didn't), but I get the same error message. Any ideas on how to fix this?</p>
  <p><a href="https://i.stack.imgur.com/8AuNG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8AuNG.png" alt="enter image description here" /></a></p>