I'm working on enabling Catalyst for my existing iOS app. When I try to archive and export Catalyst as a Developer ID-signed Mac app, I get the following error:
Cannot create a Mac Catalyst Developer ID provisioning profile for "[my bundle ID]".
The Siri capability is not available for Mac Catalyst Developer ID provisioning profiles. Disable this feature and try again.
My iOS app uses SiriKit to donate a Siri intent, so Siri is among the capabilities listed in the Signing and Capabilities tab in the project inspector in Xcode. I don't see a way to turn that capability off only for Catalyst (like you can link some frameworks only for Catalyst or iOS), and I don't want to disable Siri entirely in my iOS app.
What's going on here? What do I need to do to "disable this feature" for Catalyst?
I got an answer to this elsewhere. The enabling or disabling of the Siri capability (and others) is actually stored in the project's Entitlements file. So I duplicated my existing Entitlements file, removed Siri from it, and set that Entitlements file as a variation for the macOS SDK in the project's "Code Signing Entitlements" build setting.