Jump to content

Patcher not compiling...


Go to solution Solved by Joka,

7 posts in this topic

Recommended Posts

Posted (edited)

I've encountered 3 issues today and my day cannot get any better! :rofl:

So basically, I've tried compiling my patcher and this is the error I get:

image.png

and

image.png

---------------------------------------

This is my tweak.xm:

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iOSGods.BuddymanKickByJoka.plist"

inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook PBGlobalStatistic

-(int)money {
if(GetPrefBool(@"kGold")) {
return 999999999;
}
return %orig;
}

-(int)coinsCount {
if(GetPrefBool(@"kCoin")) {
return 999999999;
}
return %orig;
}

%end

%hook PBSlotsManager

-(unsigned long long)getSpinsCount {
if(GetPrefBool(@"kSpins")) {
return 999999999;
}
return %orig;
}

%end


/* Popup with a link

Varieties of a UIAlertView Popup can be found here: http://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/

*/


%hook PocketBuddyAppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[uIAlertView alloc] initWithTitle:@"Bm Cheats"
message:@"\nBm Cheats by Joka for iOSGods.com"
delegate:self
cancelButtonTitle:@"Thanks"
otherButtonTitles:@"Visit Us", nil];
[igcredits show];
[igcredits release];
return %orig();
}

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

if([button isEqualToString:@"Visit Us"])
{
[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/]];
}
}
%end

If you have any idea on how to fix, please leave a comment. Thank you! :)

Updated by Joka
Posted

I've encountered 3 issues today and my day cannot get any better! :rofl:

 

So basically, I've tried compiling my patcher and this is the error I get:

 

image.png

 

and

 

image.png

 

---------------------------------------

 

This is my tweak.xm:

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.iOSGods.BuddymanKickByJoka.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%hook PBGlobalStatistic

 

-(int)money {

if(GetPrefBool(@"kGold")) {

return 999999999;

}

return %orig;

}

 

-(int)coinsCount {

if(GetPrefBool(@"kCoin")) {

return 999999999;

}

return %orig;

}

 

%end

 

%hook PBSlotsManager

 

-(unsigned long long)getSpinsCount {

if(GetPrefBool(@"kSpins")) {

return 999999999;

}

return %orig;

}

 

%end

 

 

/* Popup with a link

 

Varieties of a UIAlertView Popup can be found here: http://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/

 

*/

 

 

%hook PocketBuddyAppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

 

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

UIAlertView *igcredits = [[uIAlertView alloc] initWithTitle:@"Bm Cheats"

message:@"\nBm Cheats by Joka for iOSGods.com"

delegate:self

cancelButtonTitle:@"Thanks"

otherButtonTitles:@"Visit Us", nil];

[igcredits show];

[igcredits release];

return %orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

 

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

if([button isEqualToString:@"Visit Us"])

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/]];

}

}

%end

 

If you have any idea on how to fix, please leave a comment. Thank you! :)

 

No return %orig(); in below alertView

Posted

Well, the errors are pretty self-explaining. The UIAlertView is not supported since 9.0 anymore, you need to use an alternative like UIAlertController now.

So what will the new UIAlert/Controller text look like in the Tweak.xm?

Posted

I am yet to discover this. :D

My plans for today were to make template with a popup, but I don't know if I'll have time for that.

If you are farmiliar with Objective C you can also take a look at the Apple's documentation: https://developer.apple.com/reference/uikit/uialertcontroller

Thanks.

 

I tried that and it didn't work ._. I'll use the iOS 8 SDK and will see it that works :p

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
  • Our picks

    • Temple Run 3 v0.2.3 [ +6 Cheats ] Never Die
      Modded/Hacked App: Temple Run 3 By Imangi Studios, LLC
      Bundle ID: com.imangi.tr3
      App Store Link: https://apps.apple.com/ph/app/temple-run-3/id6748088379?uo=4

      🤩 Hack Features

      - Currency / No Need
      - Resources / No Need
      - Score Multiplier 
      - Jump
      • 13 replies
    • Crozzle - Crossword Puzzles v1.46.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Crozzle - Crossword Puzzles By MAG Interactive AB
      Bundle ID: se.maginteractive.crozzle
      App Store Link: https://apps.apple.com/ph/app/crozzle-crossword-puzzles/id6474729809?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Currency / Visual But Works
      - Unlimited Resources / Visual But Works
      • 9 replies
    • Crozzle - Crossword Puzzles v1.46.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Crozzle - Crossword Puzzles By MAG Interactive AB
      Bundle ID: se.maginteractive.crozzle
      App Store Link: https://apps.apple.com/ph/app/crozzle-crossword-puzzles/id6474729809?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Currency / Visual But Works
      - Unlimited Resources / Visual But Works
      • 7 replies
    • Z Blast! v1.0.5 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Z Blast! By UNIVERSAL MOBILE GAMES TECHNOLOGY CO., LIMITED
      Bundle ID: com.universal.mobile.fallen.city.game.ios
      App Store Link: https://apps.apple.com/ca/app/z-blast/id6752974187?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - DMG
      - Skill CD
      - Weapon CD
      - Skill Range
      - Weapon Range 
      • 5 replies
    • Z Blast! v1.0.5 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Z Blast! By UNIVERSAL MOBILE GAMES TECHNOLOGY CO., LIMITED
      Bundle ID: com.universal.mobile.fallen.city.game.ios
      App Store Link: https://apps.apple.com/ca/app/z-blast/id6752974187?uo=4

      🤩 Hack Features

      - Unlimited Gold
      - DMG
      - Skill CD
      - Weapon CD
      - Skill Range
      - Weapon Range
      • 4 replies
    • Legend TD: Epic Tower Defense v1.2.6 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Legend TD: Epic Tower Defense By Tu Do Anh
      Bundle ID: com.epic.towerdefense.td.legend
      App Store Link: https://apps.apple.com/us/app/legend-td-epic-tower-defense/id6753664870?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Stars
      - Unlimited Battle Items
      - Heroes Unlocked
      - Gun Unlocked
      - Unlimited Skill Point
      - Premium Pass Active
      - Premium Pass / Claim Unlimited
      - Free Pass / Claim Unlimited
      - Battle Cash / Sell Tower 
      • 15 replies
    • Legend TD: Epic Tower Defense v1.2.6 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Legend TD: Epic Tower Defense By Tu Do Anh
      Bundle ID: com.epic.towerdefense.td.legend
      App Store Link: https://apps.apple.com/us/app/legend-td-epic-tower-defense/id6753664870?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Stars
      - Unlimited Battle Items
      - Heroes Unlocked
      - Gun Unlocked
      - Unlimited Skill Point
      - Premium Pass Active
      - Premium Pass / Claim Unlimited
      - Free Pass / Claim Unlimited
      - Battle Cash / Sell Tower 
      • 13 replies
    • Cat Dungeon: Roguelike Survival v1.0.1 +2++ Mods [ Unlimited Currencies ]
      Mod APK Game Name: Cat Dungeon: Roguelike Survival
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.igame.catdungon.android

       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Dumb Enemies
      • 0 replies
    • Diamond Dreams Match v2.7.2 [ +1 Cheats ] Auto Win
      Modded/Hacked App: Diamond Dreams Match By GFAL GULF GAMES DMCC
      Bundle ID: com.gfal.ddreams
      App Store Link: https://apps.apple.com/us/app/diamond-dreams-match/id6744651074?uo=4

      🤩 Hack Features

      - Auto Win
      • 7 replies
    • Diamond Dreams Match v2.7.2 [ +1 Jailed ] Auto Win
      Modded/Hacked App: Diamond Dreams Match By GFAL GULF GAMES DMCC
      Bundle ID: com.gfal.ddreams
      App Store Link: https://apps.apple.com/us/app/diamond-dreams-match/id6744651074?uo=4

      🤩 Hack Features

      - Auto Win
      • 6 replies
    • Paradise Paws: Merge Animals v1.0.28 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Animal Sanctuary By Wildlife Studios, Inc
      Bundle ID: com.wildlifestudios.merge.animal.sanctuary
      App Store Link: https://apps.apple.com/us/app/animal-sanctuary/id6741805691?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Heart

      - Spin

      - LvL

      - Exp

      - Fog Auto Remove [ Linked With LvL ]

      - Premum Lands Unlocked [ Just Tap ]

      - Store Free [ IAP Not ]

      Note:- Game Close After Currency Hack Don't Worry
        • Like
      • 45 replies
    • Paradise Paws: Merge Animals v1.0.28 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Animal Sanctuary By Wildlife Studios, Inc
      Bundle ID: com.wildlifestudios.merge.animal.sanctuary
      App Store Link: https://apps.apple.com/us/app/animal-sanctuary/id6741805691?uo=4


      🤩 Hack Features

      - Gems

      - Coins

      - Heart

      - Spin

      - LvL

      - Exp

      - Fog Auto Remove [ Linked With LvL ]

      - Premum Lands Unlocked [ Just Tap ]

      - Store Free [ IAP Not ]

      Note:- Game Close After Currency Hack Don't Worry
      • 64 replies
×
  • 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