PC パソコン

How to Fix “Package realitykitcontent is using Swift tools version 6.2.0 but the installed version is 6.0.0” in Xcode

New Reality Composer Pro projects created with early Xcode 26 betas can fail to resolve their generated realitykitcontent package because Xcode reports incompatible Swift tools versions. Apple fixed this issue in Xcode 26 Beta 3.

Full error message

Package realitykitcontent is using Swift tools version 6.2.0 but the installed version is 6.0.0.

The diagnostic can appear in the Issue navigator, package-resolution output, or build log and prevent the RealityKit content package from resolving or compiling.

Cause

This is a known mismatch in Xcode 26 Beta 1 and Beta 2 between the realitykitcontent package generated by Reality Composer Pro and the Swift toolchain Xcode uses to evaluate that package. The message means the manifest requires Swift tools 6.2 while the processing toolchain identifies itself as supporting only 6.0.

The problem normally does not originate in your RealityKit source code or 3D assets. Apple tracks it as issue 152502442 in the Xcode 26 release notes.

Affected versions and conditions

  • Xcode 26 Beta 1 or Beta 2
  • A newly created Reality Composer Pro project
  • Resolving or building the generated realitykitcontent Swift package in Xcode

Apple lists the issue as resolved in Xcode 26 Beta 3. The correction is also included in stable Xcode 26 and later releases.

Recommended solution

  1. Quit Xcode and Reality Composer Pro.
  2. Install Xcode 26 Beta 3 or later, preferably the latest stable Xcode.
  3. If multiple Xcode versions are installed, verify the active Developer directory.
  4. Reopen the project with the corrected Reality Composer Pro version.
  5. Resolve package dependencies again, clean the build folder, and rebuild.
xcodebuild -version
xcode-select -p
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
xcodebuild -resolvePackageDependencies

Adjust the path passed to xcode-select if the intended Xcode installation has a different name or location.

If stale caches preserve the error

After updating, remove only the affected project’s Derived Data and resolve the packages again.

rm -rf ~/Library/Developer/Xcode/DerivedData/<affected-project-folder>

On a shared machine, use Xcode Settings > Locations to locate and delete the specific directory instead of clearing every project’s cache.

Alternatives

  • Resolve and build the package on another Mac or CI image that has a corrected Xcode release.
  • Create a fresh project with the corrected Reality Composer Pro and migrate the existing 3D assets.
  • When several Xcode installations coexist, align the GUI application, command-line selection, and CI Developer directory.

Changing the manifest’s // swift-tools-version: declaration to 6.0 was not documented by Apple as the official workaround for this bug. It can invalidate Swift 6.2-specific generated content, so it should not be treated as a permanent fix.

How to verify the fix

  1. Run xcodebuild -version and confirm Xcode 26 Beta 3 or later.
  2. Run xcrun swift --version to verify the selected Swift toolchain.
  3. Resolve package dependencies again.
  4. Confirm that the diagnostic disappears and realitykitcontent builds successfully.
  5. Load the Reality Composer Pro scene from the app and confirm that it renders on the chosen destination.

Cautions

An App Store Xcode release, a beta, and a Swift.org toolchain can coexist and leave command-line builds pointing at a different installation. Check Xcode’s Toolchains setting, xcode-select -p, and the CI DEVELOPER_DIR value together. If the same message appears on a fixed release, inspect the package’s own tools-version requirement and diagnose it separately from this Xcode bug.

Summary

Package realitykitcontent is using Swift tools version 6.2.0 but the installed version is 6.0.0 is a known issue affecting new Reality Composer Pro projects in early Xcode 26 betas. Update to Xcode 26 Beta 3 or later, align the active toolchain, and resolve the package again.

Official references