-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Compile bug: ios swift xcode build error when upgrade to llama : use cmake for swift build #10747
Comments
same issue |
Can confirm, same issue |
The way it works now is that you need to build llama.cpp with llama.cpp/.github/workflows/build.yml Lines 573 to 592 in 235f6e1
|
First of all, thank you for providing some clarification. I don't usually use Previously when developing for iOS and MacOS we could point Xcode to the llama.cpp swift package and it would "just work" which was pretty nice. If there are additional steps to be done now, can we have some additional documentation around the process? |
@pgorzelany Doing what the CI workflows do (see slaren's comment) should work. The CI workflows install the The process is a bit more involved than before, but it is more flexible and much easier to maintain. It would be useful to have step-by-step instructions added to the example, but I don't have much experience working with XCode (there is stuff like code signing, development teams, etc.), so I am hoping that people who are familiar will contribute and explain how to build a project correctly. So atm, if you are looking for a point-and-click solution - there isn't one yet. You will need to understand how CMake works and start using it. |
Thank you. Once I understand how to properly set it up I will try to contribute some documentation around it. This project is used in multiple iOS and MacOS apps and it was very convenient to use it with the Package.swift file, maybe there is a way to modify the Package.swift to work again. |
Git commit
$git rev-parse HEAD 43ed389
Operating systems
Mac
GGML backends
Metal
Problem description & steps to reproduce
ios swift xcode build error when upgrade to
Before the upgrade, the code compiled successfully. After the upgrade, it throws a compilation error: "Cannot find type 'xxx' in scope."
First Bad Commit
43ed389
Relevant log output
The text was updated successfully, but these errors were encountered: