skip to Main Content

I have recently updated to Xcode 13.2 from the Mac App Store. While trying to fix an issue with a Swift package, I uninstalled it and now I cannot reinstall the package.

When I try to add a package from GitHub the process hangs immediately on "Preparing to validate".

I already attempted to restart Xcode, restart my mac, clean derived data, reset Swift package caches and update package versions to no avail.

Is there any way around this issue?Screenshot of issue

3

Answers


  1. Check https://developer.apple.com/forums/thread/696504 and re-download Xcode 13.2 directly from the releases section of the Apple Developer website: https://developer.apple.com/download/release/

    Login or Signup to reply.
  2. Make sure to update Xcode to 13.2.1

    They have just released the update that should fix it. See in the link that @mikeyh posted in the other answer: https://developer.apple.com/forums/thread/696504.

    Login or Signup to reply.
  3. I’m on Xcode 13.4.1 and ran into this same problem when trying to convert my project from CocoaPods to SPM packages because I was using the Legacy Build Location setting. When trying to install any package it would immediately hang on "Preparing to validate…" just like in the screenshot of the question.

    I did get an error stating something like the package could not be added because of using the Legacy Build Location setting, however I did not notice this in the Issue Navigator for a while because once I removed all of my CocoaPods and before I could add the SPM packages I was getting hundreds of build errors.

    To fix (if your project can use the default Build Location setting) is to set it by going to
    File->Project Settings...->Advanced...->Xcode Default

    Advanced project settings

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search