I have an Intent handler that is used on iOS in shortcuts for my app. The app is also a Catalyst app, but when I try to build it with the Extension I get the following message.
I am assuming that I cannot include the extension in Catalyst, is that true in iOS14?
Code Block error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.
I am assuming that I cannot include the extension in Catalyst, is that true in iOS14?
You can include the extension in Catalyst, but in macOS Big Sur it will only be used if for WidgetKit widget configuration.
The error you are seeing is that the bundle identifier of any extensions inside of your app need to be prefixed with the bundle identifier of your app. For example, if your app's bundle identifier is com.apple.soupchef, then your extension bundle identifier might be com.apple.soupchef.intents.
What is likely happening here is that you have a different bundle identifier for your app in Catalyst, i.e. com.apple.soupchef.mac, and if that is the case your Intents extension will need have to have a different bundle identifier as well, i.e. com.apple.soupchef.mac.intents
The error you are seeing is that the bundle identifier of any extensions inside of your app need to be prefixed with the bundle identifier of your app. For example, if your app's bundle identifier is com.apple.soupchef, then your extension bundle identifier might be com.apple.soupchef.intents.
What is likely happening here is that you have a different bundle identifier for your app in Catalyst, i.e. com.apple.soupchef.mac, and if that is the case your Intents extension will need have to have a different bundle identifier as well, i.e. com.apple.soupchef.mac.intents