Entitlements.plist 未正确创建
阅读苹果的文档,我需要创建一个临时分发应用程序,为此我需要 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
尝试在 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.你可以这样做。您也可以在 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)
在 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.
我也有同样的问题。我手动创建了一个新行“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.
我也遇到了同样的问题,企业配置。
经过大量谷歌搜索后,我发现这个。提取 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.