Open smilingjack10 opened 4 weeks ago
Try to set STRIP_STYLE = "non-global" in YourPorject.xcodeproj/project.pbxproj
Hi, Thank you for the quick response! Unfortunately, setting STRIP_STYLE="non-global" in the runner or pods Xcode project didn't help. However, adding STRIP_INSTALLED_PRODUCT = NO; under the build settings of the release version did. Thank you for pointing me in the right direction! I changed this in: ios/Runner.xcodeproj/project.pbxproj
The plugin works perfectly when used on iOS applications that were build from flutter or Xcode, both in debug as in release mode. However, once packaged into an IPA in order to upload to the App Store the onnxruntime plugin cannot be found anymore. I tried forcing to link the library in Xcode but this didn't resolve anything. Also tried: cleaning the project both from Xcode and VSCode, create a new project, other physical device. Nothing helped. When I connect the console to my physical iOS device I get the following error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'OrtGetApiBase': dlsym(RTLD_DEFAULT, OrtGetApiBase): symbol not found
0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33)
1 OnnxRuntimeBindings._OrtGetApiBasePtr (package:onnxruntime/src/bindings/onnxruntime_bindings_generated.dart:38)
2 OnnxRuntimeBindings._OrtGetApiBase (package:onnxruntime/src/bindings/onnxruntime_bindings_generated.dart)
3 OnnxRuntimeBindings.OrtGetApiBase (package:onnxruntime/src/bindings/onnxruntime_bindings_generated.dart)
4 new OrtEnv._ (package:onnxruntime/src/ort_env.dart:22)
5 OrtEnv._instance (package:onnxruntime/src/ort_env.dart:11)
6 inferSingleSequence (package:equifib_2/utils/onnx_runtime.dart)
7 _EcgScreenState.onDisconnectPressed (package:equifib_2/screens/ecg_screen.dart:412)