给App Clip的On Demand Install Capable能力添加Merchant ID时出现'relationship 'undefined''错误(Apple Pay + Stripe环境)
App Clip的On Demand Install Capable能力添加Merchant ID时出现'relationship 'undefined''错误(Apple Pay + Stripe环境)
我最近在给App Clip配置Apple Pay时卡了壳,具体场景是:在Apple Developer门户里尝试把Merchant ID关联到App Clip的On Demand Install Capable能力时,系统一直抛出这个错误:
A relationship in the provided entity is not allowed for this request. The relationship 'undefined' can not be included in a 'bundleIdCapabilities' request.
这个错误只会在我给App Clip的On Demand Install Capable选项选择并分配Merchant ID时触发,下面是我的完整配置信息:
配置详情
- 主应用ID:
com.didyoucatchit.app - App Clip ID:
com.didyoucatchit.app.Clip - Merchant ID:
merchant.com.didyoucatchit.app(已和Stripe绑定,证书已激活并验证通过) - App Clip已启用的能力:
- Apple Pay Payment Processing
- Associated Domains:
appclips:app.didyoucatchit.com - On Demand Install Capable
- App Clip的Entitlements配置:
<key>com.apple.developer.associated-domains</key> <array> <string>appclips:app.didyoucatchit.com</string> </array> <key>com.apple.developer.in-app-payments</key> <array> <string>merchant.com.didyoucatchit.app</string> </array> <key>com.apple.developer.parent-application-identifiers</key> <array> <string>$(AppIdentifierPrefix)com.didyoucatchit.app</string> </array>
目前两个配置文件(主应用和App Clip)都包含了Apple Pay Payment Processing和On Demand Install Capable能力,App Clip能正常编译运行,但Apple Pay始终不显示为支付选项,问题根源就是后台关联Merchant ID时的那个错误。
已尝试的排查步骤
- 删除并重新添加App Clip的所有相关能力
- 重新生成所有配置文件(开发和发布环境)
- 反复核对Entitlements配置和Merchant ID的关联关系
- 登出并重新登录Apple Developer后台,换Chrome、Safari等不同浏览器尝试(错误完全一致)
想请教一下社区里的各位:有没有人遇到过同样的「relationship 'undefined'」错误?有没有可行的 workaround,或者正确的操作顺序能让我成功把Merchant ID关联到App Clip的On Demand Install Capable能力,从而让App Clip正常支持Apple Pay?




