Home > Enterprise >  Xcode Workspace "Internal error: missingPackageDescriptionModule"
Xcode Workspace "Internal error: missingPackageDescriptionModule"

Time:12-15

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"

CodePudding user response:

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

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

CodePudding user response:

  • 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.

CodePudding user response:

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.

CodePudding user response:

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!!!!!!!

  • Related