I have an application made from Flutter, which is possible to run on VisionOS by running as design to Ipad, and I would like that inside this application would be possible to go to mixed reality somehow. I am trying to do so far was to embedded the vision project that I have inside the swift application that flutter generates, but in this attempt I got an error from Xcode telling me that this way is not possible. I wonder if is there an another way that I could achieve my goal?
Building for 'iOS', but linking in object file built for 'visionOS'
(image of the error)
Recommended
Compatible "Designed for iPad" apps build against the iOS SDK and cannot link visionOS libraries or frameworks.
Your app needs to be built for visionOS in order to link this library.