swift - 沙盒时无法终止其他应用程序

标签 swift macos sandbox appstore-sandbox

我开发了一个可以终止其他应用程序的应用程序,当它没有沙箱时它可以完美地工作。

NSWorkspace.shared.runningApplication.forceTerminate()

问题: 当应用程序是沙箱时,我无法终止其他应用程序。

问题: 如何让我的应用程序能够在沙箱中终止其他应用程序?

最佳答案

When the app is sandbox I cannot terminate other apps.

正确。这就是沙箱的本质:您的应用程序与其他应用程序隔离,并且无法在某些特定 channel 之外与其他应用程序进行交互。

How can allow my app to have the capability to terminate other apps when sandbox?

你不能。 (至少在一般情况下不是。)

关于swift - 沙盒时无法终止其他应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49702866/

相关文章:

ios - 今天 Widget 的 ViewDid Load 每次都会被调用

ios - 如何使用解析缓存策略

macos - 如何在 Mac OS (Sierra) 上重置 Jenkins 的用户凭据

c++ - 沙盒插件架构

iOS 8 beta 5 Game Center Sandbox 无法识别我的应用

html - Flash 在沙盒属性内的 iframe 中不起作用

iOS swift : How to achieve stack of cards like user interface?

ios - 在 iOS 中的按钮下添加虚线

java - Mac OS X 10.6 Update 10 的 Java 源在哪里?

python - 如何重置操作系统 :X installation of Python packages installed using sudo?