What is the purpose of adding the entitlements file in the iOS application? Can this Get-task-allow included in any other means?Why i have to include this key in my project?
According to Apple Docs
Entitlements confer specific capabilities or security permissions to your app. These file(s) define properties that provide your application access to iOS features (such as push notifications) and secure data (such as the user’s keychain).
Set entitlement values in order to enable iCloud, push notifications, and App Sandbox (App Sandbox is Mac OS X only). 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
in essence, it confers app developers to have finer control.
Some points to remember though -
Get-task-allow
is now called "Can be debugged" in Xcode4.1 & above if you've used the modernisation tool.