2025 Update: I've now been using Metal in Swift packages without any issues. Just as annca mentioned; get the metal library from the module bundle. There is no need to manually include and process the metal files in your package anymore, the Metal files are included automatically.
Note: annca's answer should indeed be the accepted answer, tho I can't change it, I think it's been locked in to my old answer.
In my case I simply just had previously denied notifications. Just check the notification settings first.
UNUserNotificationCenter.current().getNotificationSettings(completionHandler:)
2025 Update: I've now been using Metal in Swift packages without any issues. Just as annca mentioned; get the metal library from the module bundle. There is no need to manually include and process the metal files in your package anymore, the Metal files are included automatically.
Note: annca's answer should indeed be the accepted answer, tho I can't change it, I think it's been locked in to my old answer.
In my case I simply just had previously denied notifications. Just check the notification settings first.
UNUserNotificationCenter.current().getNotificationSettings(completionHandler:)