We have 2 developer accounts, one Developer and an Enterprise account which are used for distributing the same app, on the same company.
We've recently added support for AppClip in our app, and of course, set up everything on AppStoreConnect.
But as we need to produce 2 IPAs, one adhoc, using the developer account, and another one using the Enterprise account for internal distribution, we stumbled upon an error while archiving the Enterprise app, that was:
The capability associated with “ON_DEMAND_INSTALL_CAPABLE” could not be determined. Please file a bug report at feedbackassistant) and include the Update Signing report from the Report navigator.
Xcode couldn’t find any iOS App Development provisioning profiles matching [BUNDLE_ID_OF_APP_CLIP].
The error make sense, as AppClips are not available for Enterprise accounts and that’s fine, we don’t want to have AppClip on Enterprise build, of course.
What we would like to know is: how can we selectively use that capability com.apple.developer.on-demand-install-capable for one scheme, but not for the other one? Without compromising our Enterprise build?
The only way we found out to bypass this problem was: on build time, removing the AppClip target - but we would like to have a better approach that would not lead someone to commit the changes to pbxproj by accident.
I see that I can’t remove the capability from the Signing & Capabilities tab for the enterprise scheme. Any chance this could be done somehow?
References