iphone - Entitlements.plist 未正确创建

标签 iphone plist distribution adhoc entitlements

阅读苹果的文档,我需要创建一个临时分发应用程序,为此我需要 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>

最佳答案

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

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

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

(Xcode 3.2.2)

更新:

Xcode 4.2 起,Entitlements.plist 已从“新文件”菜单中删除。您现在可以在页面底部的Project's Targets > Summary 下找到它。

关于iphone - Entitlements.plist 未正确创建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3021569/

相关文章:

iphone - iOS XCODE崩溃并显示错误:调度队列:com.apple.root.default-qos

macos - launchctl 无法运行二进制文件并以代码 78 退出

ios - 设置一个 plist 来存储 iPhone 游戏的应用程序数据(不是设置)

python - PyMC 中的狄利克雷分布

python - 这些功能是等价的吗?

iphone - 在 View Controller 之间移动时动画不会重新启动

iphone - 如何解析 iphone 中的 json 响应?

iphone - 获取不可见的uitableviewcell

ios - Xcode 构建基于 JSON 配置文件动态设置版本

java - 有没有一种机制可以分发带有自己的 JRE 的应用程序?