Reality Composer Pro has an error Package Dependency Issue: Package is using Swift tools version 6.0.0 but the installed version is 5.9.0
Asked on 08/08/2024
1 search
It seems like you're encountering a package dependency issue in Reality Composer Pro due to a mismatch in Swift tools versions. The package you're using requires Swift tools version 6.0.0, but your installed version is 5.9.0.
To resolve this issue, you can try the following steps:
-
Update Xcode: Ensure you have the latest version of Xcode installed, as it includes the latest Swift tools. You can download the latest version from the Mac App Store or the Apple Developer website.
-
Update Swift Tools Version: If updating Xcode doesn't resolve the issue, you may need to manually update the Swift tools version in your project. Open your
Package.swift
file and update the tools version to match the installed version of Swift. -
Check Compatibility: Ensure that all dependencies in your project are compatible with the Swift tools version you are using. Sometimes, certain packages may not yet support the latest Swift tools version.
For more detailed guidance on using Reality Composer Pro and handling dependencies, you might find the following sessions from WWDC useful:
- Compose interactive 3D content in Reality Composer Pro
- Explore object tracking for visionOS
- Enhance the immersion of media viewing in custom environments
These sessions provide insights into using Reality Composer Pro effectively and might help you troubleshoot and resolve your issue.

Break into the RealityKit debugger
Meet the RealityKit debugger and discover how this new tool lets you inspect the entity hierarchy of spatial apps, debug rogue transformations, find missing entities, and detect which parts of your code are causing problems for your systems.

Enhance the immersion of media viewing in custom environments
Extend your media viewing experience using Reality Composer Pro components like Docking Region, Reverb, and Virtual Environment Probe. Find out how to further enhance immersion using Reflections, Tint Surroundings Effect, SharePlay, and the Immersive Environment Picker.

Explore object tracking for visionOS
Find out how you can use object tracking to turn real-world objects into virtual anchors in your visionOS app. Learn how you can build spatial experiences with object tracking from start to finish. Find out how to create a reference object using machine learning in Create ML and attach content relative to your target object in Reality Composer Pro, RealityKit or ARKit APIs.