llamadart_llama_cpp_flutter

Flutter Apple Swift Package Manager companion package for llamadart GGUF / llama.cpp support.

Add this package to a Flutter iOS/macOS app when the app should link the prebuilt llama.cpp Apple XCFramework through SwiftPM instead of relying on the core package's native-assets fallback.

Use the companion that shares the core's MAJOR.MINOR: companion 0.20.x pairs with core 0.20.x. Upgrade both together. Earlier pairings are in the changelog.

dependencies:
  llamadart: ^0.20.3
  llamadart_llama_cpp_flutter: ^0.20.3

This package has no runtime Dart API of its own. Import package:llamadart normally from the core package and use LlamaBackend() / LlamaEngine there.

The Apple SwiftPM manifest pins leehack/llamadart-native@v1.0.0-3.

Apps bound for the App Store should use this package: the Apple privacy manifest for the llama.cpp runtime ships inside this XCFramework, never in the dylibs the core package's native-assets fallback bundles. It declares NSPrivacyAccessedAPICategoryFileTimestamp with reason C617.1. If the embedded llama.framework in the built app has no PrivacyInfo.xcprivacy, or the app uses the fallback, declare that category and reason in the app's own PrivacyInfo.xcprivacy. See Apple privacy manifest.

Source for this package lives in packages/llamadart_llama_cpp_flutter in the llamadart repository.

Fresh macOS builds

Keep Runner's deployment target at macOS 14.0 or newer. If SwiftPM reports that FlutterGeneratedPluginSwiftPackage supports only 12.0, follow the Flutter 3.47.1 consumer bootstrap before the first build. It updates only the ignored generated manifest and builds with --no-pub; keep this package's platform requirements, native URLs and checksums intact.

Libraries

llamadart_llama_cpp_flutter
Flutter Apple SwiftPM companion package for llamadart llama.cpp/GGUF runtime linking.