Not really sure about this but opening a PR for discussion.
Building the SPM package with metal generates a bunch of NSString etc. errors.
If you move whisper.cpp into a separate target it solves the problem, so it looks like an issue with combining CPP and C/ObjC files (but it works without metal?).
There could be another way to solve it in a single target... looking into it.
Not really sure about this but opening a PR for discussion.
Building the SPM package with metal generates a bunch of NSString etc. errors.
If you move whisper.cpp into a separate target it solves the problem, so it looks like an issue with combining CPP and C/ObjC files (but it works without metal?).
There could be another way to solve it in a single target... looking into it.