简体   繁体   English

我们可以在iPhone设备上自动安装任何.deb / .ipa文件吗?

[英]Can we install any .deb/ .ipa file automatically on iPhone device?

I have one task to perform where I have to install one .ipa file on jailbroken iPhone devices. 我要执行的一项任务是在越狱的iPhone设备上安装一个.ipa文件的位置。 The project is related to jailbroken domain so any solution will work but the entire process should be automatic ie through coding only. 该项目与越狱域相关,因此任何解决方案都可以使用,但是整个过程应该是自动的,即仅通过编码即可。 I have found many solution to this but most of them ask to get the root access for app and this thing never worked for me. 我已经找到了许多解决方案,但是大多数解决方案要求获得应用程序的根访问权限,而这件事对我来说从来没有用过。 So is there any idea how to achieve that. 所以有什么想法如何实现这一目标。 Thanks in advance. 提前致谢。

Take a look at the function MobileInstallationInstall 看一下功能MobileInstallationInstall

You can find some code how to use it here https://github.com/kryhear/IPAInstaller/blob/master/testMobileInstallationInstall/BSViewController.m 您可以在这里找到一些如何使用它的代码https://github.com/kryhear/IPAInstaller/blob/master/testMobileInstallationInstall/BSViewController.m

It will required you to add entitlement com.apple.private.mobileinstall.allowedSPI with an array containing "Install". 它将要求您使用包含“ Install”的数组添加权利com.apple.private.mobileinstall.allowedSPI。

However, I am not sure whether it will be completely silent or not. 但是,我不确定是否会完全静音。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM