When adding a Swift Package in Xcode, you may sometimes get stuck at the “Verifying … Preparing to validate” screen.
This usually happens because of a workspace build system setting conflict.
To fix it:
Change Workspace Build System Setting
Go to File > Workspace Settings
Under Build System, change from Legacy to New Build System (Unique).
Update Derived Data Settings
Go to Xcode > Settings > Locations
Click on Advanced…
Change Derived Data location to Unique (instead of Legacy or Shared).
After applying these changes, try adding the Swift Package again — it should validate and install correctly.