Skip to content

Instantly share code, notes, and snippets.

@dlevi309
Created February 4, 2026 12:24
Show Gist options
  • Select an option

  • Save dlevi309/e3b6f40e88dc61f90641301388fbb612 to your computer and use it in GitHub Desktop.

Select an option

Save dlevi309/e3b6f40e88dc61f90641301388fbb612 to your computer and use it in GitHub Desktop.
Kills all processes managed by runningboardd (works on macOS / iOS)
// 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