You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using ORT2.0.0-rc.9 in a library i try to use from Swift, but it doesnt find this Symbol.
The "you may have to compile ONNX Runtime from source" error went away after statically linking the compiled onnxruntime (v1.20), but im not sure if i compiled the runtime right because there is no libonnxruntime.a only a .dylib. ./build.sh --config Release --parallel --use_xcode --ios --use_coreml --apple_sysroot iphoneos --osx_arch arm64 --apple_deploy_target 16
Undefined symbols for architecture arm64:
"_OrtGetApiBase", referenced from:
std::sync::once::Once::call_once_force::_$u7b$$u7b$closure$u7d$$u7d$::h47f52d7832dce82e (.llvm.14180137373844910416) in libimage_bridge-ios.a[247](ort-46c9f4dffbc173d0.ort.3dae33b5982acf3c-cgu.10.rcgu.o)
core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h3fd7027c9915fc5e (.llvm.14180137373844910416) in libimage_bridge-ios.a[247](ort-46c9f4dffbc173d0.ort.3dae33b5982acf3c-cgu.10.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thank you!
The text was updated successfully, but these errors were encountered:
By "using [...] in a library i try to use from Swift," do you mean you are compiling a Rust crate as a staticlib, and then trying to link to that from a Swift package?
Im compiling my library into an XCFramework which is a dependency for a SPM Package. I fixed it by adding onnxruntime-swift-package-manager as a dependency in XCode, resolving the linking error. Which means I most likely made a mistake when compiling the onnxruntime library for iOS.
Im using ORT2.0.0-rc.9 in a library i try to use from Swift, but it doesnt find this Symbol.
The "you may have to compile ONNX Runtime from source" error went away after statically linking the compiled onnxruntime (v1.20), but im not sure if i compiled the runtime right because there is no libonnxruntime.a only a .dylib.
./build.sh --config Release --parallel --use_xcode --ios --use_coreml --apple_sysroot iphoneos --osx_arch arm64 --apple_deploy_target 16
Thank you!
The text was updated successfully, but these errors were encountered: