gpt4 book ai didi

ios - Entitlements.entitlements 有什么作用?

转载 作者:行者123 更新时间:2023-11-29 03:42:34 27 4
gpt4 key购买 nike

在其中一个项目中,有一个名为Entitlements.entitlements的文件,这个文件是做什么的?

里面的内容就像

<?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>get-task-allow</key>
<false/>
</dict>
</plist>

最佳答案

"Entitlements confer specific capabilities or security permissions to your iOS or OS X app.

Set entitlement values in order to enable iCloud, push notifications, and App Sandbox. Each entitlement has a default value, which in most cases disables the capability associated with the entitlement. When you set an entitlement, you are overriding the default by providing an appropriate key-value pair.

  • iCloud entitlements let you enable the use of iCloud data storage for your iOS or OS X app.

  • You set iCloud entitlement values on a target-by-target basis in your Xcode project.

  • Push notifications let your app alert the user even when your iOS or OS X app is not executing.

  • You set push notification entitlement values as part of configuring your development and distribution provisioning profiles.

  • App Sandbox entitlements let you enable the security feature called sandboxing for your OS X app. (In iOS, all apps are sandboxed automatically, so these sandboxing entitlements do not apply.)

  • By carefully enabling only the resource access that you need, you minimize the potential for damage if malicious code successfully exploits your app. You set App Sandbox entitlement values on a target-by-target basis in your Xcode project."

http://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html

编辑

目前,您拥有的这个权利 plist 看起来是空的。

为了解释它的组成部分,:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

是文档类型定义 (DTD),是定义此 XML 文件的文档类型的标记声明。

:

<plist version="1.0"> 

仅告诉您 plist 的版本类型。

还有:

<key>get-task-allow</key> 

“当登录到应用程序时,允许其他进程(如调试器)附加到您的应用程序。分发配置文件要求关闭此值,而开发配置文件要求打开此值(否则 Xcode 永远不会能够启动并附加到您的应用程序)”(taken from this link) .需要 BOOL值,看起来当前设置为 <false/>

我希望这能回答您的问题并涵盖所有内容。

关于ios - Entitlements.entitlements 有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18198329/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com