Please use the Swift package directly from whisper.cpp
whisper.cpp package for the Swift Package Manager
In XCode: File -> Add Packages
Enter package URL: https://github.com/ggerganov/whisper.spm
git clone https://github.com/ggeragnov/whisper.spm
cd whisper.spm
# if building standalone
make build
# if building as a submodule for whisper.cpp
make build-submodule
# run tests
.build/debug/test-objc
.build/debug/test-swift