Entitlement(权限),可以想象成App里用于描述该App可以调用哪些服务的字符串。苹果的操作系统(mac os或者iOS)会通过检查这个串,决定这个应用是否可以调用相关功能。比如iCloud权限,推送服务,健康服务等。

entitlement
[英][ɪnˈtaɪtlmənt][美][ɛnˈtaɪtlmənt]
n.授权; 应得权益; 命名、被定名;
复数:entitlements

About Entitlements


Entitlements confer specific capabilities or security permissions to your iOS or macOS app.


At a Glance

Set entitlement values in order to enable iCloud, push notifications, Apple Pay, 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 macOS 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 macOS app is not executing.

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

  • Apple Pay and PassKit Entitlements enable in-app payments using Apple Pay, and allow your app to access passes from the PassKit library.

  • App Sandbox entitlements let you enable the security feature called sandboxing for your macOS 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.

You can set many entitlements using the Summary tab of the Xcode target editor. Other entitlements require editing a target’s entitlements property list file. Finally, a few entitlements are inherited from the iOS provisioning profile used to run the app.

The sort of value to associate with an entitlement key depends on the key. Many entitlement keys take Boolean values. For entitlements defined in a property list in an Xcode project, a Boolean entitlement value is either <true/> or <false/>. Some entitlement keys take a string or an array of strings as a value. Refer to the chapters in this document for specifics on the values to apply to the various entitlement keys.

To use any entitlement keys, you must code sign your app because an app’s entitlements are built in to its code signature.

												

最新文章

  1. javaccript学习2
  2. C#基础知识系列三(类和结构体、String和StringBuilder、equals和==)
  3. Linux Kernel sys_call_table、Kernel Symbols Export Table Generation Principle、Difference Between System Calls Entrance In 32bit、64bit Linux
  4. java 基本类库包的作用
  5. Linux下安装mysql-5.6.4 的图文教程
  6. HDU 5927 Auxiliary Set (dfs)
  7. ARC和MRC实现单例模式
  8. iOS -一些常用的方法
  9. 22. 使用 awk / grep / head / tail 命令进行文本 / 日志分析 (/home/D/acc.log)
  10. href=&amp;quot;javascript:void(0);&amp;quot;与#差异
  11. Redis持久化存储
  12. J2EE进阶(十六)Hibernate 中getHibernateTemplate()方法使用
  13. 【vue】移动端demo资料
  14. 将选中项的value值赋给select的title
  15. Netty 源码剖析之 unSafe.read 方法
  16. 多线程学习笔记四之Condition实现分析
  17. Python3.x(windows系统)安装matplotlib库
  18. jQuery 阻止冒泡和默认事件
  19. C#监控文件夹变化
  20. centos7下python3与python2共存并且开启py3虚拟环境

热门文章

  1. 「LuoguT36048」 Storm in Lover
  2. background-clip与background-origin
  3. ASP.NET Core MVC 2.x 全面教程_ASP.NET Core MVC 17. 基于Claim和Policy的授权 上
  4. UVa 11040 Add bricks in the wall (水题递推)
  5. ORACLE PL/SQL 实例精解之第六章 迭代控制之一
  6. Bid和Ask
  7. 洛谷 - P2055 - 假期的宿舍 - 最大流
  8. 算法学习--Day2
  9. 如何才能优雅地书写JS代码
  10. BERT的几个可能的应用