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

Unable to run onnxruntime-genai on iOS (Xcode 15.3) #979

Open
ShamDhi opened this issue Oct 14, 2024 · 3 comments
Open

Unable to run onnxruntime-genai on iOS (Xcode 15.3) #979

ShamDhi opened this issue Oct 14, 2024 · 3 comments

Comments

@ShamDhi
Copy link

ShamDhi commented Oct 14, 2024

Hello @microsoftopensource , Hope you're doing well.

I'm unable to run onnxruntime-genai for iOS using Xcode 15.3. I followed the steps mentioned in the demo and this Microsoft link, but the repository you referenced is unavailable (git checkout yguo/ios-build-genai). I proceeded with the main branch from GitHub and set everything up the same, but the application crashes on launch. Even your demo fails to run successfully.

FYI, I also tried the branch (git checkout yguo/chat-app-genai) available on the repo, but in this branch, none of the mentioned commands work, and no code can be executed.

I've attached a screenshot and crash logs from the console for reference. Could you please help with troubleshooting or guide me to resolve this crash? If you need additional details, I’ll be happy to share.

First Crash: /private/var/containers/Bundle/Application/8AC1B341-3A75-4806-AA85-8F61A506F689/OnnxModelFinal.app

Second Crash: libc++abi: terminating due to uncaught exception of type std::runtime_error: Error opening /private/var/containers/Bundle/Application/8AC1B341-3A75-4806-AA85-8F61A506F689/OnnxModelFinal.app/genai_config.json

Screenshot from Xcode console:

Screenshot 2024-10-03 at 3 43 37 PM

Thank you!

@skyline75489
Copy link
Contributor

Hi, the exception indicates that you don't have genai_config.json available. How did you set the model path? Did you copy the required model files?

@ShamDhi
Copy link
Author

ShamDhi commented Oct 16, 2024

Yes, @skyline75489, I added all the files correctly and set the path properly. After that, I encountered another error. Please check the screenshot.

screenshot

@skyline75489
Copy link
Contributor

Please provide full stacktrace and the exact code you're using if you can. The exception itself is not helpful, if you want others to understand the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants