ldid is a tool made by saurik for modifying a binary's entitlements easily. ldid also generates SHA1 hashes for the binary signature, so the iPhone kernel executes the binary. ldid -e dumps the binary's entitlements.
ldid -Sent.xml
sets the binary's entitlements. For compiling ldid easily, refer to https://github.com/rpetrich/ldid.