Jump to content

Error Preference Bundle


Go to solution Solved by Rook,

5 posts in this topic

Recommended Posts

Posted (edited)

Hi Every Body 

I Have A Bundle Package , And I Have A Problem On This Command

 

On My Bundle.mm

-(void)respring {
system("killall -9 SpringBoard");
}

Error When Type Make Package Install , And I'm Using iOS 9.0.2

error: 'system' is deprecated: first deprecated in iOS 8.0 -
      Use posix_spawn APIs instead. [-Werror,-Wdeprecated-declarations]
        system("killall -9 SpringBoard");
/var/root/iTools/theos/sdks/iPhoneOS8.1.sdk/usr/include/stdlib.h:177:6: note:
      'system' has been explicitly marked deprecated here
int      system(const char *) __DARWIN_ALIAS_C(system) __OSX_AVAILABLE_B

 

...Thanks For Help ! 

Updated by iperispc
Posted


- (void)respring {

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wdeprecated-declarations"

 

system("killall -9 SpringBoard");

#pragma clang diagnostic pop

}

Since system() was deprecated by Apple in iOS 9, We have to silence the compiler in order for it to pass through
  • Solution
Posted

Add this to your Makefile:

CFLAGS = -Wno-deprecated -Wno-deprecated-declarations

@@iperispc

 

You can also try downgrading your SDK if absolutely necessary.

Posted
Fixed  ;)

 



#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
system("killall -9 SpringBoard");
#pragma GCC diagnostic pop

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