Skip to content

fix(flutter): add plugin platform declarations and vendored iOS Llama.xcframework podspec - #1

Closed
sebasbad wants to merge 2 commits into
mainfrom
fix/flutter-ios-android-plugin-support
Closed

fix(flutter): add plugin platform declarations and vendored iOS Llama.xcframework podspec#1
sebasbad wants to merge 2 commits into
mainfrom
fix/flutter-ios-android-plugin-support

Conversation

@sebasbad

Copy link
Copy Markdown
Owner

Summary

Fixes iOS and Flutter plugin auto-linking for llama_cpp_dart.

Problem

  1. Missing Plugin Platform Spec: pubspec.yaml omitted the flutter.plugin.platforms declaration block, preventing Flutter CLI from registering native iOS/Android plugin bindings in .flutter-plugins-dependencies.
  2. Missing iOS Pod Spec & Framework Placement: CocoaPods was unable to locate and embed Llama.xcframework into Runner.app/Frameworks/, resulting in dynamic library load errors (dlsym / dlopen failure for llama_log_set).

Solution

  • Added flutter.plugin.platforms configuration to pubspec.yaml for iOS, Android, macOS, Windows, and Linux.
  • Added ios/llama_cpp_dart.podspec and vendored Llama.xcframework in ios/ directory for seamless CocoaPods integration.
  • Ensures zero manual Podfile path hacks required in consuming Flutter apps.

@sebasbad

Copy link
Copy Markdown
Owner Author

Superseded by PR #2 (#2) which incorporates full 0.9.0 off-thread architecture, monolithic Llama.xcframework, and universal simulator support.

@sebasbad sebasbad closed this Jul 27, 2026
@sebasbad
sebasbad deleted the fix/flutter-ios-android-plugin-support branch July 27, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant