78

After updating Xcode to version 13.2 i can't build my project anymore. I have a strange error "Internal error: missingPackageDescriptionModule" related to my Workspace file.

It's definitely related to SPM because Xcode is not loading SPM packages also. I tried to "Reset package caches", "Resolve package caches" and also "Updating to latest package caches" but after all of these operating nothing happens. Deleting derived data, cleaning didn't help too...

enter image description here

I tried also to resolve packages from Terminal using xcodebuild -resolvePackageDependencies but I get error message:

--- xcodebuild: WARNING: The directory /Users/ptocicki/Developer/KFC/kfc-ios also contains the legacy project 'project.pbxproj' - ignoring it and using 'KFC.xcodeproj'.

xcodebuild: error: Could not resolve package dependencies:
  Internal error: missingPackageDescriptionModule"
Peterses
  • 938
  • 7
  • 14
  • 1
    Same thing over here... I just can't believe such a HUGE bug would go out the door. Have you managed to find a fix? – Mihai Fratu Dec 13 '21 at 23:33
  • 1
    I'm seeing this issue. I'm running Xcode 13.2 (via App Store) on macOS Big Sur 11.6.2 on a 2019 16" MBP. I did not see this bug in the Xcode 13.2 release candidate from last week. – Eugene Dec 14 '21 at 00:26
  • I reinstalled Xcode, but unfortunately that not helped too – Peterses Dec 14 '21 at 00:41
  • I tried my project on an M1 Pro MBP running macOS Monterey 12.1, same issue. – Eugene Dec 14 '21 at 00:42
  • Same here https://stackoverflow.com/q/70342174/10050675 – aryanm Dec 14 '21 at 00:44
  • I'm also seeing that when I create a brand new project, and try to add an SPM package like Alamofire, it gets stuck at the step "Verifying Alamofire... Preparing to validate...". So it looks like it might be more of a widespread SPM issue. – Eugene Dec 14 '21 at 00:57
  • 3
    I found an ongoing discussion on this issue in the Apple Developer forums: https://developer.apple.com/forums/thread/696504 – Eugene Dec 14 '21 at 01:02
  • I downloaded XCode 13.1 using the XCodes app and it all works fine – Stoyan Dec 14 '21 at 10:02
  • This is one of the worse I saw in a long time. You spend hours waiting the damn thing to finish downloading and installing, only to find out that if you preferred to use SPM, you'll need to start **all over again**. This time with a **10GB(!)** download (also, download speed is really poor). – bauerMusic Dec 17 '21 at 07:51
  • @bauerMusic If possible always try to download Xcode from Apple portal (NOT AppStore), because updating from AppStore always takes o lot more time. I also recommend [Xcodes](https://github.com/RobotsAndPencils/XcodesApp). – Peterses Dec 18 '21 at 02:26
  • @Peterses I guess so, but I think the AppStore can do incremental updates, the full version is kind of huge. (Nice App at Xcodes!) – bauerMusic Dec 18 '21 at 05:18

8 Answers8

36

Apple is aware of the issue.

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 directly from the Downloads page.

https://developer.apple.com/forums/thread/696504?answerId=698142022#698142022

mrtnrst
  • 41
  • 6
atlwx
  • 1,334
  • 1
  • 14
  • 9
20

Fixed on v13.2.1 and you can download from here


Explaination

This bug is reported and the v13.2.1 AppStore version but As  Apple suggest here, you should download the Xcode manually from the developer center

Manual download of any Apple developer software

✅ The always working and preferred workaround!

Download directly from Apple:

Then extract and move it where you like. This has so many benefits compared to AppStore updates. (like the ability to resume download, not replacing the old one, not wasting hidden directories and etc.)

Note that you should use safari to download it.


⚠️ Important note for developers like me!

The page you’re looking for can’t be found.

If you The page you’re looking for can’t be found message, you may need to use a VPN if you are in a country that the US sanctioned like mine. Because Apple is blocking some IP address ranges.

Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
13
  • If you’re using Swift packages either standalone or as dependencies in an Xcode project or workspace, the Mac App Store version of Xcode fails during package resolution with the error “Internal error: missingPackageDescriptionModule.” (86435800)

Workaround: Download Xcode 13.2 directly from the Apple Developer website.

Giovanni Palusa
  • 1,197
  • 1
  • 16
  • 36
3

I just got the issues late at night after Xcode updated on its own while I was working on my project, which was not a cool surprise. It appears to be affecting all dependencies. You are not alone in this it's affecting everyone. I did what they recommended and downloaded Xcode directly from the Apples developer site and it fixed all my issues super happy right now!!!!!!!

1

XCode was updated to 13.2.1 at 12/19 which fix the issue.

foolbear
  • 726
  • 1
  • 7
  • 19
0

https://developer.apple.com/documentation/xcode-release-notes/xcode-13_2-release-notes

If you’re using Swift packages either standalone or as dependencies in an Xcode project or workspace, the Mac App Store version of Xcode fails during package resolution with the error “Internal error: missingPackageDescriptionModule.” (86435800)

Workaround: Download Xcode 13.2 directly from the Apple Developer website.

Seems local package still working. So there is a temporary solution: We can download the dependencies then add them to the project as local paclages.

BB9z
  • 2,432
  • 1
  • 30
  • 36
0

Please update to Xcode 13.2.1. enter image description here

If not, download Xcode 13.2 from the Apple Developer website.

maxwell
  • 3,788
  • 6
  • 26
  • 40
0

Updating from Xcode 13.2 to 13.2.1 from App Store fixed the issue for me.

Saurabh Bajaj
  • 473
  • 4
  • 7