Skip to content
Guest Big Announcement

Error Compiling Tweak

Featured Replies

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

Solved by Diversityy

Post a picture

Updated by Lulunba1

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
  • Author

 

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'

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

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.