Xcode 5:启用/禁用权利文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19000038/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:54:38  来源:igfitidea点击:

Xcode 5: enable/disable entitlements file

xcodexcode5entitlements

提问by Ankur

How can I enable or disable entitlements file in my project? In previous version of Xcode(4.2), it was like in below image, but in Xcode 5 I couldn't find it.

如何在我的项目中启用或禁用权利文件?在以前的 Xcode(4.2) 版本中,就像下图一样,但在 Xcode 5 中我找不到它。

In code hierarchy, entitlement file is present, as it was added with previous version of Xcode.

在代码层次结构中,存在权利文件,因为它是在先前版本的 Xcode 中添加的。

enter image description here

在此处输入图片说明

回答by Simon Goldeen

  • Go to the build settings of your target.
  • Make sure that you have "All" selected instead of "Basic"
  • Type "entitlements" into the search box
  • The result is the build setting where you can specify where your entitlements file is located
  • 转到目标的构建设置。
  • 确保您选择了“全部”而不是“基本”
  • 在搜索框中输入“权利”
  • 结果是构建设置,您可以在其中指定您的权利文件所在的位置

It is worth noting that, for the most part in Xcode 5 you do not need the entitlements file as most of its responsibility is handled automatically by Xcode and in the provisioning profile of your app.

值得注意的是,在 Xcode 5 的大部分情况下,您不需要权利文件,因为它的大部分职责由 Xcode 自动处理,并在您的应用程序的配置文件中。