/path/to/abc.ipa -> /path/to/tmp-abc.ipa
system("chown mobile:mobile /path/to/tmp-abc.ipa")
if UIDevice.currentDevice..systemVersion <= 7.9
MobileInstallationInstall = /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation ! MobileInstallationInstall
NSDictionary* options = [NSDictionary dictionaryWithObject:@"User" forKey:@"ApplicationType"];
MobileInstallationInstall(@"/path/to/tmp-abc.ipa", options, callback1, callback2); //callback1 callback2 接收安装百分比
else
LSApplicationWorkspace* space = [LSApplicationWorkspac defaultWorkspace]
[installApplication:withOptions:error:]
[space installApplication:[NSURL fieURLWithPath:@"/path/to/tmp-abc.ipa" ] withOptions:0 error:error]