llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

llama : add xcframework build script

Open danbev opened this issue 1 day ago • 1 comments

This commit adds a script to build an XCFramework for iOS. The script uses CMake to build the library for both the simulator and device and then creates an XCFramework that contains both builds.

The XCFramework can then be added to a project and used in the same way as a regular framework. The llama.swiftui example project has been updated to use the XCFramework and can be started using the following command:

$ open examples/llama.swiftui/llama.swiftui.xcodeproj/

Refs: https://github.com/ggml-org/llama.cpp/issues/10747

danbev avatar Feb 21 '25 07:02 danbev