This project worked fine in visionOS 2.5 & Xcode 16.4.
We do have a custom process to load the bundle though, we build our package with a custom script:
#!/bin/sh
rm -rf ./.build
xcodebuild \
-scheme RealityKitContentPackage \
-destination 'generic/platform=visionOS' \
-configuration Release -derivedDataPath ./.build \
clean build
rm -rf 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle'
cp -rf .build/Build/Products/Release-xros/RealityKitContent_RealityKitContent.bundle/ 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle'
rm -rf .build
and load it this way:
var realityKitContentBundle: Bundle {
let bundleURL = Bundle.main.url(forResource: "RealityKitContent", withExtension: "bundle")!
return Bundle(url: bundleURL)!
}
The scene is then loaded like this:
environmentEntity = try! await Entity(named: "TGVM", in: realityKitContentBundle)
We discovered today that the issue is coming from the fact that our 3D files are in the .usdc format, when using .usdz things are working as inteded.
But .usdc files were supported before, was there any change in visionOS & Xcode 26?
To be clear this project worked fine before on visionOS 2.5, we're updating it to visionOS 26.