Jump to content

15 posts in this topic

Recommended Posts

Posted


#include <spawn.h>

extern char **environ;

 

//Rest of your code

 

pid_t pid;

char *argv[] = {

system("killall -9 SpringBoard");

NULL

}

 

posix_spawn(&pid, argv[0], NULL, NULL, argv, environ);

waitpid(pid, NULL, 0);

Posted (edited)

This should work

#include <spawn.h>
 
pid_t pid;
int status;
const char* args[] = {"killall", "-9", "SpringBoard", NULL};
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
waitpid(pid, &status, WEXITED);

alternatively you can enable the use of system commands

 

int system_no_deprecation(const char *command) {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
	return system(command);
#pragma GCC diagnostic pop
}
Updated by castix
Posted

I did man

When i put this on top of my makefile it work

export TARGET= iphone:clang:7.1:7.1

 

But doesnt work with 8.1

 

export TARGET= iphone:clang:8.1:8.1

There is no mistake kuz it work with 7.1

Do this:

 

 

GO_EASY_ON_ME = 1

ARCHS = arm64 armv7

TARGET = iphone:clang:8.1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines