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

Undefined Symbols in Xcode After Building onnxruntime-genai for macOS. to use it in xcode mac app #1306

Open
DeepBhupatkar opened this issue Mar 7, 2025 · 2 comments
Assignees

Comments

@DeepBhupatkar
Copy link

I followed this steps to build of macOS. for ONNX Runtime and onnxruntime-genai on 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-genai:

git clone https://github.com/microsoft/onnxruntime-genai
cd onnxruntime-genai
python3 build.py --parallel --build_dir ./build_macos

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.

@DeepBhupatkar DeepBhupatkar changed the title Undefined Symbols in Xcode After Building Generative AI for macOS. to use it in xcode mac app Undefined Symbols in Xcode After Building onnxruntime-genai for macOS. to use it in xcode mac app Mar 7, 2025
@natke
Copy link
Contributor

natke commented Mar 7, 2025

Hi @DeepBhupatkar,

Can you share the code that you are using in your XCode project?

We did have a breaking API change between 0.5.2 and 0.6.0. If you created your app prior to 0.6.0, you are likely using the old API.

There is a migration guide here: https://onnxruntime.ai/docs/genai/howto/migrate.html

@natke
Copy link
Contributor

natke commented Mar 9, 2025

Any updates on this @DeepBhupatkar?

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