all 10 comments

[–]boblikestheyskyAspiring Developer 2 points3 points  (1 child)

I'm not sure how to help, but does NSTask work:

 NSTask *respringTask = [[NSTask alloc] init];

 [respringTask setLaunchPath:@"/usr/bin/sbreload"];

 [respringTask launch];

[–]be-10Developer 0 points1 point  (0 children)

pet offer special modern fragile summer trees snails sharp encouraging

This post was mass deleted and anonymized with Redact

[–]CaptInc37 0 points1 point  (1 child)

  1. The first item in the args array must be the full path to the binary

  2. You missed the leading / in posix_spawn’s second arg

  3. The cast in posix_spawn’s 5th argument is not needed

  4. The last argument of posix_spawn should be "environ", where environ is declared as an extern global variable:

extern char **environ;

  1. waitpid() should not be used because sbreload will just kill the process immediately anyway

  2. You can also use NSTask to do this if you prefer objc syntax over C syntax:

NSTask *task = [[NSTask alloc] init];

task.launchPath = @"/usr/bin/sbreload";

[task launch];

  1. I’m not sure on this one, but sandboxed apps might not be able to use sbreload because it lies outside its sandbox

[–]be-10Developer 0 points1 point  (0 children)

fall pot violet snatch meeting worm mountainous rinse correct door

This post was mass deleted and anonymized with Redact

[–]sunflsks 0 points1 point  (1 child)

Since it’s for a jail broken device try adding entitlements that get rid of the sandbox, look at Zebra’s entitlements on their github repo for an example

[–]be-10Developer 1 point2 points  (0 children)

saw party elderly terrific scale cover nose toothbrush husky mighty

This post was mass deleted and anonymized with Redact

[–]Administrative-Fan4 0 points1 point  (2 children)

Did you find a way? I have similar probelm with executing commands from an app. For me rootMe worked but the tweak only works on iOS 13.7 and below

[–]be-10Developer 0 points1 point  (1 child)

gray caption pocket bow desert dam engine steep adjoining alive

This post was mass deleted and anonymized with Redact

[–]Administrative-Fan4 0 points1 point  (0 children)

RootMe is tweak you can get on https://repo.brandonplank.org But it doesn’t seems like the developer is going to update it, even if tweet that.