HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了关于iOS XCode的entitlements文件大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

entitlements,全称 code signing entitlements
苹果官方的说明:https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html

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

翻译一下就是

授权赋予iOS或macOS应用特定的功能或安全权限。

XCodeCapabilities选项卡下选择一些选项之后,XCode就会生成这样一段 XMLXCode自动生成一个.entitlements文件,然后在需要的时候往里面添加条目。

关于iOS XCode的entitlements文件


XCode会将这个文件作为 --entitlements参数的内容传给codesign

<?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>keychain-access-groups</key>
        <array>
			<string>$(AppIdentifierPrefix).com.linxinfa.game</string>
		</array>
		<!--推送功能-->
        <key>aps-environment</key>
        <string>development</string>
</dict>
</plist>

这些授权信息必须都在开发者中心的 App ID中启用,并且包含在配置文件中。在构建应用时需要使用的授权文件可以在 XCode工程的Build Settings中的 Code Signing Entitlements中设置。

关于iOS XCode的entitlements文件

大佬总结

以上是大佬教程为你收集整理的关于iOS XCode的entitlements文件全部内容,希望文章能够帮你解决关于iOS XCode的entitlements文件所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: