Skip to content

fix: bump macOS SPM deployment target from 10.14 to 10.15 for SFTranscription#664

Open
buryitaway-boop wants to merge 1 commit intocsdcorp:mainfrom
buryitaway-boop:main
Open

fix: bump macOS SPM deployment target from 10.14 to 10.15 for SFTranscription#664
buryitaway-boop wants to merge 1 commit intocsdcorp:mainfrom
buryitaway-boop:main

Conversation

@buryitaway-boop
Copy link
Copy Markdown

Problem

speech_to_text 7.3.0 fails to compile on macOS when using Swift Package Manager (SPM) instead of CocoaPods.

The Package.swift declares .macOS("10.14") but several types in SpeechToTextPlugin.swift (e.g. SFTranscription) require macOS 10.15+.

This causes Xcode to emit:

'SFTranscription' is only available in macOS 10.15 or newer

Related issues: #662, #649

Fix

One-line change: bump .macOS("10.14").macOS("10.15") in speech_to_text/darwin/speech_to_text/Package.swift.

This aligns the SPM minimum deployment target with the actual API requirements of the plugin code.

@gabrielgarciagava
Copy link
Copy Markdown

gabrielgarciagava commented Apr 13, 2026

This fix is possible, but the current code in the main branch also already works.
The problem is that the fix is not released to 7.3.0 (if you force the prerelease 7.4.0-beta.8 to be used, the issue is gone)
The change: aabdb5e#diff-4a1a0df16dfbfcbf44745a2b4f6cff2ae91556854a6d367f497a658b9e525a5eR867

In any case, I think your change is also good. The podspec already forces 10.15, so your pull request brings consistency to SPM side.

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