Skip to content

Conversation

@westonwestenborg
Copy link
Contributor

Summary

Several @available annotations in SystemLanguageModel.swift only specified macOS 26.0, * but were missing iOS 26.0 and other platforms. This causes build failures when targeting iOS 26.0 because the extensions use iOS 26-only APIs (GenerationSchema, GeneratedContent) but are marked available on all iOS versions due to the * wildcard.

Changes

Fixed 4 @available annotations (lines 320, 347, 354, 361) to include all platforms:

- @available(macOS 26.0, *)
+ @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, visionOS 26.0, *)

This matches the pattern used elsewhere in the file (e.g., line 371).

Error Fixed

error: 'GenerationSchema' is only available in iOS 26.0 or newer
error: 'GeneratedContent' is only available in iOS 26.0 or newer

Related

This may be related to issue #15.

…sions

Several @available annotations only specified macOS 26.0, * but were missing
iOS 26.0 and other platforms. This causes build failures when targeting iOS 26.0
because the extensions use iOS 26-only APIs (GenerationSchema, GeneratedContent)
but are marked available on all iOS versions due to the * wildcard.

This fixes the 4 affected extensions to include all platforms, matching the pattern
used elsewhere in the file (e.g., line 371).
@96imranahmed
Copy link

Thanks for fixing this! Running into this issue too :)

@mattt
Copy link
Owner

mattt commented Dec 15, 2025

Thank you, @westonwestenborg!

@mattt mattt merged commit 97db31f into mattt:main Dec 15, 2025
3 checks passed
@mattt
Copy link
Owner

mattt commented Dec 17, 2025

This is now in 0.5.1

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.

3 participants