I tried this approach after a meeting with an engineer (maybe it was you? :D) last week and sadly it doesn't work, same error appears. Here are some screenshots with the steps I followed:
Added xcconfig files for Debug, Beta and Release configs and add a user-defined variable (in my case called BASE_BUNDLE_IDENTIFIER and PARENT_APP_BUNDLE_IDENTIFIER in the AppClip xcconfigs):
And set these xcconfig files as the configuration files for each configuration of the target:
Verify that BASE_BUNDLE_IDENTIFIER appears as set above the various build configurations under the user-defined section of the build settings pane of both your app and app clips:
In the Build Settings pane of the target building your app, set the product bundle identifier (PRODUCT_BUNDLE_IDENTIFIER) setting to $(BASE_IDENTIFIER) for all of your configurations:
In the Build Settings pane of the target building your App Clip, set the product bundle identifier (PRODUCT_BUNDLE_IDENTIFIER) setting to $(PARENT_APP_BUNDLE_IDENTIFIER).Clip for all of your configurations:
In your App Clip's entitlement file, set the Parent Application Identifier entry under Parent Application Identifiers to $(AppIdentifierPrefix)$(PARENT_APP_BUNDLE_IDENTIFIER). There should only be an entry under Parent Application Identifiers.
Also in the main target's entitlement make sure that the app associated appclip identifier matches the bundle identifier of the AppClip using the user-defined variable: