美文网首页
App Clip设置Parent Application Ide

App Clip设置Parent Application Ide

作者: 烽火连天x | 来源:发表于2020-07-01 17:21 被阅读0次

创建App Clip时,Xcode会为你创建Parent Application Identifiers Entitlement,它是key为com.apple.developer.parent-application-identifiers, 值的类型为字符串数组。例如:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.parent-application-identifiers</key>
    <array>
        <string>$(AppIdentifierPrefix)com.example.apple-samplecode.fruta</string>
    </array>
</dict>
</plist>

或者


9.png

由于一个App Clip总是只会对应一个主应用,所以要确保com.apple.developer.parent-application-identifiers的值只有一个,并且是$(AppIdentifierPrefix)加主应用的Bundle Identifier。

如果遇到Could not install at this time. Application identifier of the parent app, "(AppIdentifierPrefix)com.test.app", is not a prefix of the application identifier of the app clip, "(AppIdentifierPrefix)com.example.apple-samplecode.fruta.Clip"这样的问题,这里是因为Parent Application Identifiers Entitlement和你的App Clip的Bundle Identifier的前缀不一致。修改为相同主应用的Bundle Identifier即可。

相关文章

网友评论

      本文标题:App Clip设置Parent Application Ide

      本文链接:https://www.haomeiwen.com/subject/wdhhqktx.html