ios - What does Entitlements.entitlements do? -


in 1 of projects , there file called entitlements.entitlements, file do?

the content inside like

<?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 ios or os x app.

set entitlement values in order enable icloud, push notifications, , app sandbox. each entitlement has default value, in cases disables capability associated entitlement. when set entitlement, overriding default providing appropriate key-value pair.

  • icloud entitlements let enable use of icloud data storage ios or os x app.

  • you set icloud entitlement values on target-by-target basis in xcode project.

  • push notifications let app alert user when ios or os x app not executing.

  • you set push notification entitlement values part of configuring development , distribution provisioning profiles.

  • app sandbox entitlements let enable security feature called sandboxing os x app. (in ios, apps sandboxed automatically, these sandboxing entitlements not apply.)

  • by enabling resource access need, minimize potential damage if malicious code exploits app. set app sandbox entitlement values on target-by-target basis in xcode project."

http://developer.apple.com/library/mac/documentation/miscellaneous/reference/entitlementkeyreference/chapters/aboutentitlements.html

edit

currently, looks entitlements plist have empty.

to explain parts of are, the:

<!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> 

is document type definition (dtd), , markup declaration define document type xml file.

the:

<plist version="1.0">  

just tells version type of plist.

and the:

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

"when signed application, allows other processes (like debugger) attach app. distribution profiles require value turned off, while development profiles require value turned on (otherwise xcode never able launch , attach app)" (taken link). takes bool value, looks currenly set <false/>

i hope answers question , covers everything.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -