Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Undefined Symbols in Xcode After Building onnxruntime for macOS. to use it in xcode mac app #1309

Closed
DeepBhupatkar opened this issue Mar 7, 2025 · 1 comment

Comments

@DeepBhupatkar
Copy link

Describe the issue

I followed this steps to build of macOS. for ONNX Runtime macOS. The build process completed successfully, and I integrated the generated .dylib files into my Xcode macOS project. However, when trying to use these libraries, I encounter the following undefined symbol errors during linking:

Undefined symbol: _OgaGeneratorParamsSetInputSequences
Undefined symbol: _OgaGenerator_ComputeLogits

Step i did ::

First : cloned and built onnxruntime:

git clone https://github.com/microsoft/onnxruntime.git
cd onnxruntime
./build.sh --build_shared_lib --skip_tests --parallel --build_dir ./build_macos --config Release

Request for Help
Could anyone provide guidance on resolving these undefined symbol issues? Do I need to enable specific flags while building, or is there a missing step in the integration process? Any insights would be greatly appreciated.

Urgency

No response

Target platform

MacOS - Apple Silicon

Build script

First : cloned and built onnxruntime:

git clone https://github.com/microsoft/onnxruntime.git
cd onnxruntime
./build.sh --build_shared_lib --skip_tests --parallel --build_dir ./build_macos --config Release

Error / output

while using it .dylib in xcode :

Undefined symbol: _OgaGeneratorParamsSetInputSequences
Undefined symbol: _OgaGenerator_ComputeLogits

Visual Studio Version

No response

GCC / Compiler Version

No response

@snnn snnn transferred this issue from microsoft/onnxruntime Mar 7, 2025
@natke
Copy link
Contributor

natke commented Mar 7, 2025

Duplicate of #1306

@natke natke marked this as a duplicate of #1306 Mar 7, 2025
@natke natke closed this as completed Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants