Entitlements.plist 未正确创建

发布于 2024-09-05 05:28:32 字数 734 浏览 2 评论 0原文

阅读苹果的文档,我需要创建一个临时分发应用程序,为此我需要 entitlements.plist。 当我创建新权利时,值“get-task-allow”不存在,所以我手动添加..是对的吗? 最后 Entitlements.plist 是这样的:

<?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>application-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    </array>
    <key>get-task-allow</key>
    <true/>
</dict>
</plist>

reading the doc from apple I need to create an ad-hoc distribution app, and to do so I need the entitlements.plist.
when i create a new entitlement, the value "get-task-allow" is not present, so I added by hand.. is right??
at the end the Entitlements.plist is this:

<?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>application-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    </array>
    <key>get-task-allow</key>
    <true/>
</dict>
</plist>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

相思故 2024-09-12 05:28:32

尝试在 XCode 中转到“新文件”,然后在向导中选择“代码签名”。选择“权利”文件类型。

只需将其命名为“Entitlements.plist”。
确保未检查任务允许的临时分发。

这就是您需要做的全部,无需“自己动手”:)

(Xcode 3.2.2)

更新:

Xcode 4.2 以来,Entitlements.plist 已从“新文件”菜单。您现在可以在:Project's Targets > 下找到它。摘要位于页面底部

Try, in XCode, to go "new file" and in the wizard select "code signing". Select the "Entitlements" file type.

Just name it "Entitlements.plist".
Make sure the task-allow is not checked for adhoc distrobution.

This is all you need to do, no need to "roll your own" :)

(Xcode 3.2.2)

UPDATE:

Since Xcode 4.2 the Entitlements.plist was removed from the "new file" menu. You now find it under: Project's Targets > Summary at the bottom of the page.

路还长,别太狂 2024-09-12 05:28:32

你可以这样做。您也可以在 XCode 中选择 Entitlements.plist,然后在主菜单中选择:View / Property List Type / iPhone Entitlements plist。然后可以从下拉列表中选择您的密钥,并将其称为“可以调试”(据我所知 - 它应该是此列表中唯一可用的密钥)

You can do so. Also you can select your Entitlements.plist in XCode and select in Main Menu: View / Property List Type / iPhone Entitlements plist. Then your key can be selected from dropdown list and will be called "Can be debugged" (as quite as I remember - it should be the only key avaliable in this list)

余生共白头 2024-09-12 05:28:32

在 XCode 4.2 中,权利文件已被移动。它现在是项目根目录的“目标”部分的一部分,位于“摘要”项列表的底部。

In XCode 4.2, the Entitlements file has been moved. It's now part of the project root's "Targets" section, at the bottom of the list of the "Summary" items.

怕倦 2024-09-12 05:28:32

我也有同样的问题。我手动创建了一个新行“get-task-allow”,将类型更改为布尔值,实际上必须将其设置为 true 才能获取设备令牌。

I had this same problem. I manually created a new row "get-task-allow", changed type to boolean and actually had to have it set to true to get the device token.

離殇 2024-09-12 05:28:32

我也遇到了同样的问题,企业配置。
经过大量谷歌搜索后,我发现这个。提取 ipa,将 Entitlements.plist 复制到 Payload 文件夹,并使用 这个。没有做任何其他事情,它开始正常安装。

I too had the same issue, with enterprise provisioning.
After lots of googling I found this. Extracted the ipa, copy the Entitlements.plist to the Payload folder and codesigned with the method in this. didn't do anything else, it started installing properly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文