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

Building Llama IOS Demo failed #5623

Closed
Hanxian97 opened this issue Sep 25, 2024 · 5 comments
Closed

Building Llama IOS Demo failed #5623

Hanxian97 opened this issue Sep 25, 2024 · 5 comments
Assignees
Labels
bug Something isn't working module: examples Issues related to demos under examples directory triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@Hanxian97
Copy link

Hi I am new to Xcode. I tried to follow this tutorial to run Llama IOS demo on my iPhone.

I went through the process until the "Xcode" section, and opened the project of examples/demo-apps/apple_ios/LLama. When I tried to do "select which ExecuTorch framework should link against which target." I found I cannot link the backends against the main app target, as shown in this figure:
xcode

Thus after this, when I ran the app, it failed with the error "PhaseScriptExecution failed with a nonzero exit code".

When I followed the exactly same flow to set up and run this benchmark app, I can successfully run it on my phone.

Do you have any idea on how to properly set up the ExecuTorch dependency for the llama demo app? Thank you so much!

@Hanxian97 Hanxian97 changed the title Building Llama IOS Demo but failed Building Llama IOS Demo failed Sep 25, 2024
@Olivia-liu Olivia-liu added iOS iOS related build and execution issues bug Something isn't working module: examples Issues related to demos under examples directory and removed iOS iOS related build and execution issues labels Sep 25, 2024
@Olivia-liu
Copy link
Contributor

@shoumikhin @Riandy Would you be able to look at this question? Thank you

@Olivia-liu Olivia-liu added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 25, 2024
@shoumikhin
Copy link
Contributor

@Hanxian97 the project you've opened is already set up to work out the box, so just click Run and it should launch the app in Simulator.

@Hanxian97
Copy link
Author

@shoumikhin Thank you for your reply. When I click "Run", it will still build before run, and triggered the "PhaseScriptExecution failed with a nonzero exit code" error. Did I miss something?

@Hanxian97
Copy link
Author

Or do you have a doc/tutorial for using this benchmark app? I can successfully run this, but I am not sure how to use it/modify it after that. Thank you!

@kebbbnnn
Copy link

Had the same PhaseScriptExecution error. It turns out Xcode can't find the cmake installed via homebrew that resides in /opt/homebrew/bin/ even if I added it to PATH. So I uninstalled the homebrew cmake and downloaded cmake gui here https://cmake.org/download/ then run: sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install to install symlinks to /usr/local/bin/ then everything worked fined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: examples Issues related to demos under examples directory triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

5 participants