Skip to content

Fix tvOS build error with Swift 6.3 for SFSpeech extensions#154

Merged
mbrandonw merged 1 commit intopointfreeco:mainfrom
davdroman:fix-tvos-speech-availability
Mar 4, 2026
Merged

Fix tvOS build error with Swift 6.3 for SFSpeech extensions#154
mbrandonw merged 1 commit intopointfreeco:mainfrom
davdroman:fix-tvos-speech-availability

Conversation

@davdroman
Copy link
Copy Markdown
Contributor

The SFSpeechRecognizerAuthorizationStatus, SFSpeechRecognitionTaskHint, and SFSpeechRecognitionTaskState types are unavailable on tvOS, but the @available attributes on their CustomDumpStringConvertible conformances didn't reflect this. Starting with Swift 6.3, this causes a build error:

error: 'SFSpeechRecognizerAuthorizationStatus' is unavailable in tvOS
extension SFSpeechRecognizerAuthorizationStatus: CustomDumpStringConvertible {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: 'SFSpeechRecognitionTaskHint' is unavailable in tvOS
extension SFSpeechRecognitionTaskHint: CustomDumpStringConvertible {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

error: 'SFSpeechRecognitionTaskState' is unavailable in tvOS
extension SFSpeechRecognitionTaskState: CustomDumpStringConvertible {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

This adds @available(tvOS, unavailable) to each of the three extensions.

@davdroman davdroman force-pushed the fix-tvos-speech-availability branch from d21dd9d to 5574375 Compare February 25, 2026 12:25
@mbrandonw mbrandonw merged commit 06c5792 into pointfreeco:main Mar 4, 2026
3 checks passed
@davdroman davdroman deleted the fix-tvos-speech-availability branch March 4, 2026 14:47
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.

2 participants