whisper.net
whisper.net copied to clipboard
MAUI - MacCatalyst Codesign fails - "unsealed contents present in the bundle root"
When using 1.5.0, Codesign fails during the building of a MAUI MacCatalyst app with the following error.
Codesign failed: <some_path> unsealed contents present in the bundle root
This is linked to the metal file that is copied over by this library during the build.
This is wholely related to the way that Mac (and presumably iOS etc) apps are required to be packaged. It's by no means unique to Whisper.Net. Here's a related Overflow post with a list of variations on the theme.
Downgrading to 1.4.7 fixes the issue, but comes with significant performance loss compared to metal enabled 1.5.0. I suspect that this commit could be broadly connected to this or something similar. It'd be brilliant to use metal in MAUI mac apps on arm64 chips. The prototype console app with 1.5.0 was blisteringly fast!
Is there any way to control where the metal file get's placed during build? Ideally, it would end up in /Resources/Raw
for a MAUI project. Nothing jumped out after a poke around the Library, but I could have easily missed it.
If not, is this something that could be added / addressed in a future release?
Thanks for all the effort with the library. 🙏 It's been super useful.