Jump to content

Ughhh, compiling tweak error -_-


Go to solution Solved by Amuyea,

12 posts in this topic

Recommended Posts

Posted

Right guys, I'm tryna compile a tweak & boom, this is the error I get:

 

image.png

 

 

 

Any way to resolve this without removing the hooked functions? :/

Posted

show your tweak.xm bb

#include <substrate.h>
 
%hook AppDelegate
 
- (void)applicationDidBecomeActive:(id)application {
    NSUserDefaults *validate = [NSUserDefaults standardUserDefaults];
    NSString *alreadyRun = @"already_run";
    if ([validate boolForKey:alreadyRun])  
    return;
    [validate setBool:YES forKey:alreadyRun];
    UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Topface VIP Hack!"
    message:@"VIP Hack made by Joka on iOSGods. Enjoy! 😎" delegate:nil cancelButtonTitle:@"Thank you!"
    otherButtonTitles:nil];
    [alert show];
    [alert release];
}
%end
 
%hook UserOptionsInput
-(bool) unlockAllForPremium {
return TRUE;
}
%end
 
%hook UserOptionsInput
-(void) setUnlockAllForPremium:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook TopFaceApp.UserSettings
-(bool) unlockAllForPremium {
return TRUE;
}
%end
 
%hook TopFaceApp.UserSettings
-(void) setUnlockAllForPremium:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook UserInfo
-(bool) premium {
return TRUE;
}
%end
 
%hook UserInfo
-(void) setPremium:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook CSComScore
+(bool) isJailbroken {
return TRUE;
}
%end
 
%hook CSCore
-(bool) isJailBroken {
return TRUE;
}
%end
 
%hook CBJBroken
+(bool) isDeviceJailbroken {
return TRUE;
}
%end
 
%hook GADDevice
-(bool) jailbroken {
return TRUE;
}
%end
 
%hook UnityAdsDevice
+(bool) isJailbroken {
return TRUE;
}
%end
 
%hook InputMessage
-(bool) premium {
return TRUE;
}
%end
 
%hook PremiumMessages
-(bool) enabled {
return TRUE;
}
%end
 
%hook TopFaceApp.PremiumMessagesDefault
-(bool) enabled {
return TRUE;
}
%end
 
%hook UserInfo
-(void) setBanned:(bool)arg1 {
return %orig;
}
%end
 
%hook UserInfo
-(bool) banned {
return %orig;
}
%end
 
%hook TopFaceApp.TrialVipPopupViewController
-(void) purchaseCompletedWithSuccess:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BuyVC
-(void) purchaseCompletedWithSuccess:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BuyVIPViewController
-(void) purchaseCompletedWithSuccess:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook DatingPopupManager
-(bool) shouldShowTrialVipPopup {
return TRUE;
}
%end
 
%hook Purchases
-(id) vipProducts {
return @"Yes";
}
%end
 
%hook BuyVIPViewController
-(void) fillVipCapabilities {
return %orig;
}
%end
 
%hook GADTiming
-(bool) isActive {
return %orig;
}
%end
Posted

you are trying to do something like this in your code somewhere:

 

something.UserSettings

 

find the code that says that and fix it

ohhhh you'll won't be able to hook a class with a name like that. You also can't hook classes called "Level" for some reason

 

there's no fix

Posted

you are trying to do something like this in your code somewhere:

 

something.UserSettings

 

find the code that says that and fix it

ohhhh you'll won't be able to hook a class with a name like that. You also can't hook classes called "Level" for some reason

 

there's no fix

So I can't fix it?

  • Solution
Posted

There is no fix for something like "TopFaceApp.TrialVipPopupViewController"

 

Trust me, I faced with this problem before xD

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