如何以编程方式安装 iOS 应用程序?
我正在努力将应用程序推送到设备上。
我能够以编程方式下载 ipa 文件(也是相关的配置文件)。
我要做的下一件事是以编程方式安装这个下载的应用程序文件。
我做了很多搜索,发现沙箱和其他 iOS 限制不允许我安装这个应用程序。
我需要知道是否有一种方法可以在设备上以编程方式(代码或脚本)安装 iOS 应用程序。
Android 提供了一种使用 Intents 以编程方式安装应用程序的机制。
想知道 iOS 中是否有类似 Android 提供的功能
I am working on pushing an application on to device.
I was able to download the ipa file (also related profile) programmatically.
The next thing that i have to do is to install this downloaded application file programmatically.
I have done a lot of search and found that sandboxing and other iOS limitations wont allow me to install this app.
I need to know is there a way to install iOS apps programmatically (code or scripts) on the device.
Android provides a mechanism to install apps programmatically using Intents.
Want to know if there is anything analogoues or similar to what Android provides in iOS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能,至少不能从设备上。 (注意:我的意思是未越狱的设备。)
您可以做的就是在网站上提供 IPA 并将其下载到设备上。这就是企业部署的工作原理,您可以使用相同的技巧进行临时构建。
GitHub 上有一个项目可以自动执行此操作:BetaBuilder。
这可能不是您正在寻找的内容,但据我所知,这是您当前可以获得的最接近的内容。
You can't, at least not from the device. (Caveat: I mean a non-jailbroken device.)
What you can do is make an IPA available on a website and download it to a device. This is how enterprise deployment works, and you can use the same trick for ad hoc builds.
There's a project on GitHub that automates this: BetaBuilder.
This probably isn't what you're looking for, but it's the closest that you can currently get as far as I'm aware.
您可以使用以下工具从 Mac 以编程方式安装它:
https://github.com/phonegap/ios-部署
我已经成功使用它了。
You can install it programmatically from a Mac with this tool:
https://github.com/phonegap/ios-deploy
I've used it successfully.