intent 代码现在也可以放在 spm 中吗?

Asked on 06/12/2025

1 search

是的,现在可以将 App Intents 代码放在 Swift 包(SPM)和静态库中。根据 Explore new advances in App Intents 的内容,Apple 允许将 App Intents 代码打包在 Swift 包和静态库中。这一变化使得开发者可以更灵活地组织和共享他们的代码。