Skip to content

[Feature Request] Support graceful degradation for macOS versions below 26.0 #4

@kaitotokyo

Description

@kaitotokyo

Description

The current implementation of flutter_local_ai requires macOS 26.0 as the minimum deployment target, which prevents the plugin from being used in apps that need to support earlier macOS versions (e.g., macOS 15.0 Sequoia).

Current Behavior

When attempting to build a Flutter macOS app that includes flutter_local_ai, the following compilation error occurs:

/Users/kaito/xxxxxxxx/macos/Flutter/GeneratedPluginRegistrant.swift:14:8: error: compiling for macOS 15.0, but module 'flutter_local_ai' has a minimum deployment target of macOS 26.0

This is a compile-time hard requirement that forces developers to either:

Abandon support for macOS 15.x and earlier users

Remove the plugin entirely from their project

Expected Behavior

It would be highly beneficial if the plugin could support graceful degradation for older macOS versions:

On macOS 26.0+: Full functionality with local AI inference using Apple Foundation Models

On macOS 15.x and below: Plugin should compile successfully but return a not support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions