我们使用iOS私有框架MobileInstallationInstall,它在iOS 5中运行良好,如下所示:
typedef int (*MobileInstallationInstall)(NSString *path, NSDictionary *dict, void *na, NSString *path2_equal_path_maybe_no_use);
int result=pMobileInstallationInstall(ipaPath,[NSDictionary dictionaryWithObject:@"User" forKey:@"ApplicationType"],nil,ipaPath);
Run Code Online (Sandbox Code Playgroud)
但是,在iOS 6中,此方法(pMobileInstallationInstall)始终返回-1.
有人能帮助我吗?非常感谢...