Jump to content

Error Compiling Tweak


Go to solution Solved by Diversityy,

10 posts in this topic

Recommended Posts

Posted (edited)

So I got this tweak code:

%hook inAppCash

-(id) inAppCash {

return [NSNumber numberWithInteger:200000];

}

%end

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"IOSGODS.COM" message:@"Made by Battleaxe" delegate:nil cancelButtonTitle:@"Enjoy!" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

 

 

And I get this error:

EDIT Oops wait a second

Updated by Battleaxe
Posted

Not atm, tomorrow I will

 

 

The code for the UIalert should be like this :) :

 

%hook AppDelegate
-(void)applicationDidBecomeActive:(id)argument {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IOSGODS.COM" message:@"Made by Battleaxe" delegate:nil cancelButtonTitle:@"Enjoy!" otherButtonTitles:nil];
[alert show];
[alert release];
%orig();
}
%end
Posted

 

The code for the UIalert should be like this :) :

%hook AppDelegate
-(void)applicationDidBecomeActive:(id)argument {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IOSGODS.COM" message:@"Made by Battleaxe" delegate:nil cancelButtonTitle:@"Enjoy!" otherButtonTitles:nil];
[alert show];
[alert release];
%orig();
}
%end

I removed UIAlert because it wasnt necessary, still got the same error: 'Constants from lexical variables potentially modified'

Posted

I removed UIAlert because it wasnt necessary, still got the same error: 'Constants from lexical variables potentially modified'

Can you please post the whole error not just one line?

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