Entitlements defines the specific capabilities or permissions of an applications.
On a Jailbroken iPhone, entitlements of an iOS application can be extracted with ldid tool. On recent iOS versions ldid was broken and not working properly against appstore binaries. Entitlements are usually embedded in the binary file. So we can use grep or sed commands to extract the entitlements from app binary.
Below command lists out the entitlements of Twitter application.
sed -n '/<dict>/,/<\/dict>/p' Twitter
<dict> <key>application-identifier</key> <string>8248RGMF2D.com.atebits.Tweetie2</string> <key>aps-environment</key> <string>production</string> <key>keychain-access-groups</key> <array> <string>8248RGMF2D.com.atebits.Tweetie2</string> </array> </dict>