Attempting to load an entity via Entity.loadAsync(contentsOf: url) throws an error when passing a .realitycomposerpro file:
"Cannot determine file format for ...Package.realitycomposerpro"
AdditionalErrors=(
"Error Domain=USDKitErrorDomain Code=3 "Failed to open layer
}
I have a VisionOs app with the same Reality Composer pro file referenced. The project automatically builds a .reality file out of the project. The project contains the realityComposerPro package as a library in the Link Binary build phase.
I duplicated this setup with my iPhone app using RealityKit. Attempting to include a realityconvertpro package into my existing app. causes a build error:
RealityAssetsCompile:
Error: for --platform, value must be one of [xros, xrsimulator], not 'iphoneos'
Usage: realitytool compile --output-reality [--schema-file ] [--derived-data ] --platform --deployment-target [--use-metal ]
See 'realitytool compile --help' for more information.
Lastly, I extracted the .reality file generated by a separate, working, visionOs app using reality converter pro. Attempting to actually load an entity from this file results in an error:
Reality File version 9 is not supported. (Latest supported version is 7.)
Topic:
App & System Services
SubTopic:
Core OS
Tags:
iOS
Reality Composer
visionOS
Reality Composer Pro