Skip to content
Guest Big Announcement

Help with Tweak.xm

Featured Replies

3 minutes ago, Demi-God said:

I get error can't return void 

I see that you have the error. Try this.

%hook CupidIAPHelper
-(void)setIsVipMember:(bool)arg1 {
arg1 = TRUE;
}
%end

Guide: https://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/

 

Updated by Amuyea

  • Author
4 hours ago, Ted2 said:

Send tweak.xm using ghostbin :) 

Done

4 hours ago, Amuyea said:

I see that you have the error. Try this.


%hook CupidIAPHelper
-(void)setIsVipMember:(bool)arg1 {
arg1 = TRUE;
}
%end

Guide: https://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/

 

I did that i turned the return to argument before i post that but then the hack didn't work, so i said maybe something is wrong let me ask for help x'D 

but then after recheking we had the init class wrong cupid.setting it should've been Cupid.UserSetting i fixed this but the hack still doesn't work ? 

19 hours ago, Demi-God said:

Done

I did that i turned the return to argument before i post that but then the hack didn't work, so i said maybe something is wrong let me ask for help x'D 

but then after recheking we had the init class wrong cupid.setting it should've been Cupid.UserSetting i fixed this but the hack still doesn't work ? 

Did you install the deb right? In flex, it's fine?

Shouldn't it have this at the top?

                           vvv

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook CupidSetting

-(void)SetIsVipMember:(bool)arg1 {
arg1 = TRUE;
}
%end

%hook CupidIAPHelper

-(bool)IsVipMember {
return TRUE;
}
%end

%hook CupidSetting

-(bool) IsVipMember {
return TRUE;
}

%end

%hook CupidAppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Enjoy your free VIP" 
                                                  message:@"Hacked by Demi-God for iOSGods.com!!" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Close" 
                                        otherButtonTitles:@"Similar apps", nil]; 
[credits show];
[credits release]; 
return %orig;
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
        if([button isEqualToString:@"Similar apps"])
        {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/topic/60935-hmu-get-more-friends-views-free-vip"]];                                                                                
        }
}
%end

%ctor {
    %init(CupidSetting = objc_getClass("Cupid.UserSetting"), CupidIAPHelper = objc_getClass("Cupid.IAPHelper"), CupidAppDelegate = objc_getClass("Cupid.AppDelegate"));
};

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.