2
votes

In SpringBoard-Class.h I found the functions such as these:

-(void)_powerDownNow;
-(void)_rebootNow;
-(void)reboot;
-(void)powerDown;

I am trying to use them. My iPhone is jailbroken.

I use [[[SpringBoard alloc] init] reboot], but the compiling result is:

Undefined symbols for architecture armv6: "_OBJC_CLASS_$_SpringBoard", referenced from: objc-class-ref in RootViewController.mm.o ld: symbol(s) not found for architecture armv6 collect2: ld returned 1 exit status.

2
Seems to me that SprintBoard library is not being compiled. Check your build params in the project settings. Make sure it exists in your target.Paul Peelen
I think you missed any framework which it need ...TheTiger
@ Paul Peelen in fact I use TheOs to develop a jailbreak app?do you have any idea of that??user1676978
@Vakul Saini in fact,you can find a truth that springboard class is not a framework,it is a app type of file. meanwhile,i find springboard services is a framework.but it exists in the private framework document.um~~ can you go on helping me ??user1676978
Sorry bro no idea about springboard .. but if would know i would surely let you know .... :)TheTiger

2 Answers

3
votes

I'm assuming that you are developing a tweak which hooks into SpringBoard. If you don't have the headers present, you can always use

[objc_getClass("SpringBoard") sharedApplication] methodToUse];

This will produce a warning... but it will be fine.

You can't call SpringBoard's methods from an app, because SpringBoard is not a library you can link to. It is an app itself.

-1
votes

Make sure you import the springboard.h header in your mm file like this

#import <SpringBoard/SpringBoard.h>

Or it may be just be no caps

Also make sure you have got headers in your Theos/include folder I recommend using rpetrich's headers from github