IOS library crashes in distribution configuration

Hi,

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:

if (Target.Platform == UnrealTargetPlatform.IOS)
{
	PublicAdditionalFrameworks.Add(new Framework(
		"ONNXRuntime", 
		Path.Combine(PluginDirectory, "Binaries", "ThirdParty", "Onnxruntime", Target.Platform.ToString(), "onnxruntime.xcframework")
	));
}

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.

Here is the stack trace:

Here is an minimal example project without anything else than the onnxruntime framework for iOS to reproduce the issue.