Skip to content

Open-source MediaPipeTasksGenAI/GenAIC iOS source code for building from source #6265

@mihaidimoiu

Description

@mihaidimoiu

OS Platform and Distribution

macOS / iOS

Compiler version

Apple clang

Programming Language and version

Swift / Objective-C++ / C++

Installed using virtualenv? pip? Conda?(if python)

No response

MediaPipe version

0.10.33

Bazel version

No response

XCode and Tulsi versions (if iOS)

Xcode 26.4

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

The iOS GenAI inference engine source code (mediapipe/tasks/ios/genai/ and mediapipe/tasks/cc/genai/inference/) is not included in the open-source repository. The CocoaPods for MediaPipeTasksGenAI and MediaPipeTasksGenAIC are published as prebuilt binaries built internally by Google.

Complete Logs

The iOS GenAI inference engine source code (mediapipe/tasks/ios/genai/ and mediapipe/tasks/cc/genai/inference/) is not included in the open-source repository.

The CocoaPods for MediaPipeTasksGenAI and MediaPipeTasksGenAIC are published as prebuilt binaries built internally by Google.

This makes it impossible to:

  • Build GenAI/GenAIC frameworks from source
  • Distribute them via Swift Package Manager (SPM)
  • Customize or debug the inference engine

The build script (build_ios_framework.sh) already supports GenAI/GenAIC framework names and references targets like MediaPipeTasksGenAI_framework and MediaPipeTasksGenAI_library, but these targets don't exist in the public mediapipe/tasks/ios/BUILD. The GenAIC section is even marked as "This section is for internal purposes only" with a guard on ENABLE_ODML_COCOAPODS_BUILD.

Other platforms (Android/Java, Python, Web) have their GenAI implementations available in the repo. Could the iOS layer be open-sourced as well?

Missing directories/files in the public repo:

  • mediapipe/tasks/ios/genai/ (Swift layer - LlmInference.swift, etc.)
  • mediapipe/tasks/cc/genai/inference/ (C++ layer - llm_inference_engine.h, etc.)

Missing BUILD targets in mediapipe/tasks/ios/BUILD:

  • MediaPipeTasksGenAI_framework
  • MediaPipeTasksGenAI_library

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions