从苹果文档中了解到,我需要创建一个特定分发的应用程序,并且为此我需要entitlements.plist文件。 当我创建一个新的entitlement时,没有“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>