Can not install App Clip on simulator

Hi,

I tried to create a new App Clip target from my big project and install it on my simulator. The build was successful but it failed to install to simulator. Here is the error

Code Block swift
This app could not be installed at this time.
Could not install at this time.
Application identifier of the parent app, "{team_id}.", is not a prefix of the application identifier of the app clip, "{team_id}.com.{app_name}.iphone.Clip"
This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Could not install at this time.
Recovery Suggestion: Application identifier of the parent app, "{team_id}.", is not a prefix of the application identifier of the app clip, "{team_id}.com.{app_name}.iphone.Clip"
--
Application identifier of the parent app, "{team_id}.", is not a prefix of the application identifier of the app clip, "{team_id}.com.{app_name}.iphone.Clip"
Domain: MIInstallerErrorDomain
Code: 150
User Info: {
FunctionName = "-[MIInstallableBundle _performAppClipSpecificValidationForEntitlements:isAppClip:withError:]";
LegacyErrorString = AppClipBundleIDNotPrefixed;
SourceFileLine = 1228;
}
--
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 12.0 (17177)


My app bundle id: com.{app_name}.iphone
My app clip bundle id: com.{app_name}.iphone.Clip

Did I miss to set up anything? Thanks for helping
The first thing to check when it comes to errors in the Simulator is to test on an actual device. If it also fails on an actual device, then the issue is more likely to be with your code/configuration.

Does it fail in the same way on a device?

(Also, make sure you are including your team ID, that is, the $(AppIdentifierPrefix))

jasonag.
I got the same error, can anyone tell me how to solve it?

Signing certificate: None
Provisioning profile "appclipdev102020" doesn't match the entitlements file's value for the com.apple.developer.parent-application-identifiers entitlement.


> Application identifier of the parent app, "<MyTeamID>.", is not a prefix of the application identifier of the app clip, "<MyTeamID>.<MyMainAppId>.Clip"
My solution is modify the appclips.entitlements

hard code the Parent Application Identifiers to my main app full id, eg: team_name.app.example.com

I got the same error on Xcode 12.0.1 and Xcode 12.2 beta2,

Code Block
Application identifier of the parent app, "{team_id}." , is not a prefix of the application identifier of the app clip, "{team_id}.***.Clip"

My project uses CocoaPods, and after adding new AppClip target, I found new XCBuildConfiguration section in Pods/Pods.xcodeproj/project.pbxproj.

And I found PRODUCT_BUNDLE_IDENTIFIER was set to ***.Clip there.

I replaced the ***.Clip string in Pods.xcodeproj/project.pbxproj with the Bundle Identifier of the AppClip project, and then error has been resolved.

I hope it helps.
Please file a bug report and include the built app, a sysdiagnose taken after reproducing the issue, and the output of the following command:
Code Block
xcrun simctl diagnose

For details on how to take a sysdiagnose, please see Profiles and Logs.
Can not install App Clip on simulator
 
 
Q