Created
February 4, 2026 12:24
-
-
Save dlevi309/e3b6f40e88dc61f90641301388fbb612 to your computer and use it in GitHub Desktop.
Kills all processes managed by runningboardd (works on macOS / iOS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // cc -o cleartheboard src/main.m -framework Foundation -F /System/Library/PrivateFrameworks/ -framework RunningBoardServices | |
| // sign with com.apple.runningboard.terminatemanagedprocesses | |
| #import <Foundation/Foundation.h> | |
| @interface RBSTerminateRequest : NSObject | |
| - (instancetype)initForAllManagedWithReason:(NSString *)reason; | |
| - (BOOL)execute:(NSError **)error; | |
| @end | |
| int main(int argc, const char *argv[]) { | |
| @autoreleasepool { | |
| RBSTerminateRequest *request = [[RBSTerminateRequest alloc] initForAllManagedWithReason:@"clear the board"]; | |
| NSError *error = nil; | |
| BOOL success = [request execute:&error]; | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment