Entitlements.plist未正确创建

编程入门 行业动态 更新时间:2024-10-28 20:27:10
本文介绍了Entitlements.plist未正确创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

从苹果阅读文档我需要创建一个临时分发应用程序,为此我需要entitlements.plist。 当我创建一个新的权利时,值get-task-allow不存在,所以我手工添加..是对的?在Entitlements.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" "www.apple/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>

推荐答案

在XCode中尝试去新文件然后在向导中选择代码签名。选择权利文件类型。

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

只需将其命名为Entitlements.plist即可。 确保不检查任务允许的adhoc distrobution。

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)

(Xcode 3.2.2)

更新:

由于 Xcode 4.2 , Entitlements.plist 已从新文件菜单中删除。您现在可以在以下位置找到它:项目的目标>摘要位于页面底部。

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.

更多推荐

Entitlements.plist未正确创建

本文发布于:2023-07-16 19:10:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1124938.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:正确   Entitlements   plist

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!