Jump to content

App Delegate Theos Error iOS 11.2.6


Go to solution Solved by Rook,

6 posts in this topic

Recommended Posts

Posted (edited)

Hello, I got this error when I was trying to make a package for a tweak in Theos iOS 11.2.6:

iPad:/var/mobile root# cd /var/mobile/hotspothack                                                                                            

iPad:/var/mobile/hotspothack root# make package                                                                                              

> Making all for tweak HotspotHack…                                                                                                          

==> Compiling Tweak.xm (arm64)…                                                                                                              

Tweak.xm:44:6: error: receiver type 'AppDelegate' for instance message is a forward declaration                                              

    [self presentViewController:alert animated:YES completion:nil];                                                                          

     ^~~~                                                                                                                                    

Tweak.xm:30:8: note: forward declaration of class here                                                                                       

@class AppDelegate; @class AFUserAccount;                                                                                                    

       ^                                                                                                                                     

1 error generated.                                                                                                                           

make[3]: *** [/var/theos/makefiles/instance/rules.mk:246: /var/mobile/hotspothack/.theos/obj/debug/arm64/Tweak.xm.12ce51a7.o] Error 1        

==> Compiling Tweak.xm (armv7)…                                                                                                              

Tweak.xm:44:6: error: receiver type 'AppDelegate' for instance message is a forward declaration                                              

    [self presentViewController:alert animated:YES completion:nil];                                                                          

     ^~~~                                                                                                                                    

Tweak.xm:30:8: note: forward declaration of class here                                                                                       

@class AppDelegate; @class AFUserAccount;                                                                                                    

       ^                                                                                                                                     

1 error generated.                                                                                                                           

make[3]: **make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/hotspothack/.theos/obj/debug/arm64/HotspotHack.dylib] Error

2                                                                                                                                            

make[2]: *** Waiting for unfinished jobs....                                                                                                 

* [/var/theos/makefiles/instance/rules.mk:246: /var/mobile/hotspothack/.theos/obj/debug/armv7/Tweak.xm.469337b3.o] Error 1                   

make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/hotspothack/.theos/obj/debug/armv7/HotspotHack.dylib] Error 2         

make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2                                                    

make: *** [/var/theos/makefiles/master/rules.mk:123: HotspotHack.all.tweak.variables] Error 2                                                

iPad:/var/mobile/hotspothack root#

                                                                                                         

Tweak.xm:

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

#import <substrate.h>

/* Code Injection Example

More CSCI examples can be found here: http://iosgods.com/forum/48-coding-center/

*/

#include “writeData.h”

 

%hook AFUserAccount

-(bool) isElite {

return TRUE;

}

%end

 

%hook AFUserAccount

-(void) setIsElite:(bool)arg1 {

arg1 = TRUE;

%orig(arg1);

}

%end

 

 

%hook AppDelegate

 

- (void)applicationDidFinishLaunching:(id)arg1 {

 

    %orig;

 

    UIAlertController * alert =   [UIAlertController

    alertControllerWithTitle:@"Hotspot VPN Tweak"

    message:@"Hack Successfully Installed"

    preferredStyle:UIAlertControllerStyleAlert];

 

    UIAlertAction * ok = [UIAlertAction

    actionWithTitle:@"Thank You!"

    style:UIAlertActionStyleDefault

    handler:^(UIAlertAction * action)

    {

        [alert dismissViewControllerAnimated:YES completion:nil];

    }];

 

    [alert addAction:ok];

 

    [self presentViewController:alert animated:YES completion:nil];

}

 

%end

 

Updated by The Epic Gamer
Posted

Please read our "How to Properly Post a Support Topic" here: https://iosgods.com/topic/49670-read-how-to-properly-post-a-support-topic/

Posted
1 hour ago, DiDA said:

Please read our "How to Properly Post a Support Topic" here: https://iosgods.com/topic/49670-read-how-to-properly-post-a-support-topic/

Ok, I edited the post, is it good now?

Posted
Just now, The Epic Gamer said:

Ok, I edited the post, is it good now?

Not really, it's still missing points from the properly posting a support topic post.

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