简体   繁体   English

在我自己的应用程序中启动iOS-App-Bundle

[英]Launch iOS-App-Bundle in my own App

I want to write an iOS-Security-App. 我想编写一个iOS安全应用程序。 I want to be able to launch another App inside it. 我希望能够在其中启动另一个App。 So I have in mind to have the whole App-Bundle and manage the launch and its resources and so on, so that I know what happens inside the 3rd party App. 因此,我要考虑拥有整个App捆绑包并管理启动及其资源等,以便我知道第三方App内发生了什么。

So in practice, my own App should just draw a small rectangle in which all happens, so that the users can see he is working inside my secure environment. 因此,在实践中,我自己的App应该只是在其中绘制一个小矩形,以便用户可以看到他正在我的安全环境中工作。 I want to place the whole App-Bundle of another App inside my App-Folder and want to be able to start it like the user would have started it outside of my secure-app. 我想将另一个应用程序的整个应用程序捆绑包放在我的应用程序文件夹中,并希望能够像用户在我的安全应用程序之外启动它一样来启动它。 That means that the other App IS the same process as my secure App, so that I have some control over it like loading resources etc. And I dont mean to start it via an URL, it should display normally inside my app. 这意味着另一个应用程序与我的安全应用程序是相同的过程,因此我可以对其进行一些控制,例如加载资源等。我并不意味着要通过URL启动它,它应该在我的应用程序中正常显示。

I hope someone knows how to achieve that or even knows that that is impossible. 我希望有人知道如何做到这一点,甚至知道那是不可能的。 At least I know that its possible on Android and since they both are Unix based I hope it is doable in iOS as well. 至少我知道它在Android上是可能的,并且由于它们都是基于Unix的,所以我希望它在iOS中也是可行的。

Cheers Dominik 干杯多米尼克

I'm pretty sure there is no way of doing this in iOS. 我很确定在iOS中无法做到这一点。 You can do inter app communications using URL schemes and UIDocumentInteractionControllers, and iOS8 will allow you to extend your app's functionality into other apps, but iOS won't let you execute and control other apps inside your app for security reasons. 您可以使用URL方案和UIDocumentInteractionControllers进行应用程序间通信,iOS8允许您将应用程序的功能扩展到其他应用程序,但是出于安全原因,iOS不允许您执行和控制应用程序内的其他应用程序。

You can do this with some MDM tools, but they require the encapsulated app to be compiled with support for wrapping and the encapsulated app is delivered via enterprise distribution, not the App Store. 您可以使用某些MDM工具来执行此操作,但是它们要求封装的应用程序在编译时具有对包装的支持,并且封装的应用程序是通过企业分发而非App Store交付的。

You can't do this with arbitrary applications or with your app being delivered by the App Store. 您不能对任意应用程序或由App Store交付的应用程序执行此操作。

Apple would probably argue that apps are already executing in a secure context on iOS. 苹果可能会认为应用程序已经在iOS上的安全环境中执行。

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

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