请教一下各位朋友,就是ipa程序安装怎么实现的啊? 我在网上找了一个方法 typedef int (*MobileInstallationInstall)(NSString *path, NSDictionary *dict, void *na, NSString *path2_equal_path_maybe_no_use);
{
void *lib = dlopen("/System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation", RTLD_LAZY);
if (lib)
{
MobileInstallationInstall pMobileInstallationInstall = (MobileInstallationInstall)dlsym(lib, "MobileInstallationInstall");
if (pMobileInstallationInstall)
{
int ret = pMobileInstallationInstall(path, [NSDictionary dictionaryWithObject:@"User" forKey:@"ApplicationType"], nil, path);
dlclose(lib);
return ret;
}
}
return -1;
}
,这个我在模拟器上能够安装成功,在真机上返回-1,安装失败 路径也绝对正确,求帮助啊