Description
It would be really nice if Sherpa-Onnx could support native VisionOS Development with SwiftUI. At the moment, the current Sherpa-Onnx.xcframework does not contain the binaries to build a native app with the VisionOS SDK. However, it does let you build an iPad app that runs on VisionOS.
I've tried to modify the source code to implement this.
I was able to update the OnnxRuntime.xcframework
by using this branch of OnnxRuntime and adding the change suggested at the very bottom of this discussion.
However, when running building Sherpa-Onnx for VisionOS, I ran into some challenges on the C side that are outside my scope. Specifically with the building.
Moreover, I had to update the toolchain to support VisionOS. This can be found in ./toolchains/ios.toolchain.cmake
an updated version should be at toolchains repo here
Afterwards, I modified the build-ios.sh
script to build for both the VisionOS Device and Simulator. My script kept failing at the linking stage.
Hopefully this context helps implement visionOS support later.