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

    • Project Makeover v2.121.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Project Makeover By Magic Tavern, Inc.
      Bundle ID: com.bgg.jump
      App Store Link: https://apps.apple.com/us/app/project-makeover/id1483058899?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Lives

      This hack was made by @Cashlaz. Give him all your love & appreciation! ❤️
      • 28 replies
    • Project Makeover ( All Versions ) +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Project Makeover By Magic Tavern, Inc.
      Bundle ID: com.bgg.jump
      App Store Link: https://apps.apple.com/us/app/project-makeover/id1483058899?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Lives

      This hack was made by @Cashlaz. Give him all your love & appreciation! ❤️
      • 11 replies
    • Vampire's Fall 2 v1.1.134 +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Vampire's Fall 2 By Early Morning Studio AB
      Bundle ID: com.earlymorningstudio.trident
      App Store Link: https://apps.apple.com/us/app/vampires-fall-2/id6739215084?uo=4

       


      🤩 Hack Features

      - Damage Multiplier -> Only your fists work.
      - Defence Multiplier
      - Unlimited Coins
      - Unlimited Shards
      - Unlimited Bloodstones
      - Unlimited Skill Points
      - Add 100 XP
      • 47 replies
    • Critical Strike CS: Online FPS v14.1002 +6 Cheats [ Damage + More ]
      Modded/Hacked App: Critical Strike CS: Online FPS By VERTIGOGAMES OU
      Bundle ID: com.vertigo.criticalforce
      App Store Link: https://apps.apple.com/us/app/critical-strike-cs-online-fps/id1467648713?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Fire Rate Multiplier
      - Move Speed Multiplier
      - Freeze Ammo
      - All Weapon Skins Unlocked
      - All Gloves Unlocked
      • 10 replies
    • Vampire's Fall 2 v1.1.134 +8 Cheats [ Damage & Defence ]
      Modded/Hacked App: Vampire's Fall 2 By Early Morning Studio AB
      Bundle ID: com.earlymorningstudio.trident
      App Store Link: https://apps.apple.com/us/app/vampires-fall-2/id6739215084?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier -> Only your fists work.
      - Defence Multiplier
      - Unlimited Coins
      - Unlimited Shards
      - Unlimited Bloodstones
      - Unlimited Skill Points
      - Add 100 XP
      • 33 replies
    • Eterspire - Fantasy MMORPG v58.1 +2 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Eterspire - Fantasy MMORPG By Stonehollow Workshop LLC
      Bundle ID: com.stonehollow-workshop.Eterspire
      iTunes Store Link: https://apps.apple.com/us/app/eterspire-fantasy-mmorpg/id1658183817?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      • 40 replies
    • Eterspire - Fantasy MMORPG v58.1 +2 Cheats [ Damage & Defence ]
      Modded/Hacked App: Eterspire - Fantasy MMORPG By Stonehollow Workshop LLC
      Bundle ID: com.stonehollow-workshop.Eterspire
      iTunes Store Link: https://apps.apple.com/us/app/eterspire-fantasy-mmorpg/id1658183817?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      • 128 replies
    • Critical Strike CS: Online FPS v14.1002 +6 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Critical Strike CS: Online FPS By VERTIGOGAMES OU
      Bundle ID: com.vertigo.criticalforce
      iTunes Store Link: https://apps.apple.com/us/app/critical-strike-cs-online-fps/id1467648713?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Fire Rate Multiplier
      - Move Speed Multiplier
      - Unlimited Ammo -> Will not decrease.
      - All Weapon Skins Unlocked
      - All Gloves Unlocked


      Jailbreak required hack(s): [Mod Menu Hack] Critical Strike CS: Online FPS v12.709 +6 Cheats [ Damage + More ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 185 replies
    • Avalar: Raid of Shadow v02.76.06 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Avalar: Raid of Shadow By Enigma Publishing Limited
      Bundle ID: com.vtwo.atwo.epl.as
      App Store Link: https://apps.apple.com/us/app/avalar-raid-of-shadow/id6745590551?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 23 replies
    • Glow Fashion Idol v0.7.0 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Jailbreak required hack(s): [Mod Menu Hack] Glow Fashion Idol v0.3.3 +2 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Winner
      • 66 replies
    • Glow Fashion Idol v0.7.0 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Glow Fashion Idol v0.3.3 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 32 replies
    • Kitty Keep v1.36.1 +2 Jailed Cheats [ God Mode ]
      Modded/Hacked App: Kitty Keep™ By Funovus LLC
      Bundle ID: com.funovus.wildcastle2
      iTunes Store Link: https://apps.apple.com/us/app/kitty-keep/id6476017989?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - God Mode
      - Unlimited Mana -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Kitty Keep v1.1.3 +2 Cheats [ God Mode ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 31 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