Failed to install ipa file programatically in iOS

2019-07-16 18:44发布

问题:

I use MobileInstallationInstall to install ipa files in a jailbreak iOS. It works well in iOS5, but it fails in iOS6. I checked the logs and find the following:

required to have an entitlement named "com.apple.private.mobileinstall.allowedSPI" with an array containing "Install" to call command Install

Then I added a entitlement in .entitlements file which named "com.apple.private.mobileinstall.allowedSPI" with an array containing "Install"

But it still fails. How can I fix it?