针对越狱 iPhone 的 Kill 命令

发布于 2024-12-28 19:47:46 字数 470 浏览 2 评论 0原文

嘿,我正在为我的应用程序寻找一个终止命令,可以让我终止其他应用程序。我希望我的应用程序能够在我的应用程序处于后台时杀死其他应用程序。我发现了这个kill命令:

Class $SBApplicationController = objc_getClass("SBApplicationController")
SBApplication *app = [[$SBApplicationController sharedInstance]
                         applicationWithDisplayIdentifier:displayIdentfier]; 
if (app) 
    [app kill];

唯一的问题是它似乎只适用于Mac OSX,我试图在我的越狱iPhone上执行此操作,所以我需要iOS。我想知道是否有人知道可以做到这一点的终止命令?或者有什么方法可以将这个kill命令从Mac OSX转换为iOS?

Hey I am looking for a kill command for my app that lets me kill other apps. I want my app to be able to kill other apps while my app is in the background. I found this kill command:

Class $SBApplicationController = objc_getClass("SBApplicationController")
SBApplication *app = [[$SBApplicationController sharedInstance]
                         applicationWithDisplayIdentifier:displayIdentfier]; 
if (app) 
    [app kill];

The only problem is it seems to only work for Mac OSX and I am trying to do this on my jailbroken iPhone so I need iOS. I was wondering if anybody knew of a kill command that can do this? Or is there any way to convert this kill command from Mac OSX to iOS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风筝在阴天搁浅。 2025-01-04 19:47:46

你似乎很困惑。 SBApplicationController 是 iOS 特定的类;它在 Mac OS X 上不存在。

You seem to be confused. SBApplicationController is an iOS-specific class; it doesn't exist on Mac OS X.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文