I’m currently adding the Android & IOS library to the NNERuntimeORT from ue5-main branch plugin. Android works fine in Development & Release, however IOS only works with non distribution builds, not in distribution builds. I’ve used the following code to include the framework to the plugin:
I’ve tried various versions of onnxruntime: 1.14.0, 1.14.1, 1.19.1. I even tried various download sources: nuget, cocoa, as well as download.onnxruntime.ai. All having the exact same behaviour.
Are you adding the framework correctly? I thought it was supposed to be added as the platform framework specifically not the entire xcframework folder?
I’ve implemented a working fix for using libonnxruntime in iOS distribution builds with UE 5.4. It includes:
Embedded .xcframework with bForceEmbedded = true FORCE_ANSI_ALLOCATOR=1 to avoid allocator crash Preserved ONNX flags (ORT_NO_EXCEPTIONS, etc.) README with full reproduction and patch steps