32

Just updated Xcode to 13.2 via Mac App Store.

I installed the additional components, and my project won't compile anymore : Xcode just tells me Internal error: missingPackageDescriptionModule - Resolving Package Graph Failed when attempting to build. None of the Swift packages used within my app seems to build, because "Package resolution errors must be fixed before building".

Already attempted to restart Xcode, update macOS, clean derived data, reset Swift package caches and update package versions to no avail.

Guess I'll try re-installing Xcode but... does anyone else have the same issue?

aryanm
  • 1,183
  • 14
  • 26

1 Answers1

32

EDIT: Xcode 13.2.1 version fixes this issue and can be downloaded from the Mac App Store.

Old Answer:

Apple has responded:

We're currently investigating this issue — thank you to those who have filed bug reports so far. To workaround this issue, please re-download Xcode 13.2 RC directly from the More Downloads page.

https://developer.apple.com/forums/thread/696504

aryanm
  • 1,183
  • 14
  • 26
  • 7
    I can confirm, that after downloading the Xcode from apple developer the build works fine now. – Alex Terente Dec 14 '21 at 13:30
  • I downloaded the the app from developer portal and it's not working – zumzum Dec 15 '21 at 16:58
  • Version 13.2 from 12/13 installs SPM dependencies no problem for me. https://developer.apple.com/download/all/ – noobular Dec 15 '21 at 19:56
  • @zumzum which version? – Johan Karlsson Dec 16 '21 at 07:28
  • 1
    I installed the Xcode version 3 times and it would work for a bit and then it would stop working. I figured out later that I needed to disable the automatic Mac app store update option. The Mac App Store would install the broken Xcode 13.2 version over the one from developer portal and break things. What a mess. I'm good now. – zumzum Dec 16 '21 at 17:08
  • It worked at first, and now after few days of working with project, it started showing same error again. – Jonauz Dec 17 '21 at 11:03
  • @Jonauz Maybe you have the same problem as @zumzum? The Mac App Store might be automatically updating your Xcode to the broken version. Try disabling automatic updates from the Mac App Store. – aryanm Dec 17 '21 at 21:14
  • Xcode 13.2.1 - problem is fixed – ekashking Dec 18 '21 at 06:49
  • I have Xcode 13.2.1 and the problem still exists!!! – Mc.Lover Mar 04 '22 at 09:46