The error message:
Compiling for iOS 15.0, but module 'WhisperKit' has a minimum deployment target of iOS 16.0: /Users/saamer/Library/Developer/Xcode/DerivedData/BeAwareConf-hbgkemigbbowvzhfaegoplloiayn/Index.noindex/Build/Products/Debug-iphoneos/WhisperKit.swiftmodule/arm64-apple-ios.swiftmodule
I know this question has been asked a lot of times in the past but it doesn’t seem like anyone has got a good answer for this. So I’m going to try to ask the question again, in case Apple created a solution for this problem.
For KhutbahCaptioning, I’d like to use the open source “WhisperKit” sdk for users who have the now iOS, and provide those users the new features with iOS 16 or newer. But don’t want users who still use iOS 15 to not get other updates useful to them.
The error is ONLY on this line import WhisperKit
, I know for SwiftCharts I was able to use canImport like this:
#if canImport(Charts)
import Charts
#endif
and that worked, but I’m getting the error above when I try to do that for WhisperKit. I tried all the solutions suggested in similar questions from the past, but none worked. Any one have success with this?