Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

error: %end does not make sense inside a block


Go to solution Solved by imp0ss1ble,

10 posts in this topic

Recommended Posts

Posted
Good evening guys, I keep getting this error while trying to compile a hack with preference bundle.
Tweak.xm:20: error: %end does not make sense inside a block make[2]: *** [obj/Tweak.xm.0d97521c.o] Error 255 make[1]: *** [internal-library-all_] Error 2 make: *** [LikeHubUltimate.all.tweak.variables] Error 2 

Is there anything wrong in this?
#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%hook LikeHubUser
- (void)setCoins:(long) arg1 {
if(GetPrefBool(@"ksetCoin")) {
arg1 = 900;
%orig (arg1);
}
- (long)coins {
if(GetPrefBool(@"kCoin")) {
return 900;
}
return %orig;
}
%end
%hook MATUtils
+ (BOOL)checkJailBreak {
if(GetPrefBool (@"kcheckJailBreak")) {
return false;
}
return %orig;
}
%end 
%hook SPJailbreakStatusProvider
+ (BOOL)isJailbroken {
if(GetPrefBool(@"kisJailbroken")) {
return false;
}
return %orig;
}

 

%end
Posted

Your problem is in the first %hook. You haven't closed a {.

  • Solution
Posted
#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"

 

inline bool GetPrefBool(NSString *key)

{

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

}

 

%hook LikeHubUser

- (void)setCoins:(long) arg1 {

if(GetPrefBool(@"ksetCoin")) {

arg1 = 900;

}

%orig (arg1);

}

- (long)coins {

if(GetPrefBool(@"kCoin")) {

return 900;

}

return %orig;

}

%end

%hook MATUtils

+ (BOOL)checkJailBreak {

if(GetPrefBool (@"kcheckJailBreak")) {

return false;

}

return %orig;

}

%end 

%hook SPJailbreakStatusProvider

+ (BOOL)isJailbroken {

if(GetPrefBool(@"kisJailbroken")) {

return false;

}

return %orig;

}

 


%end

Posted (edited)

No the first should look like this

%hook LikeHubUser
- (void)setCoins:(long) arg1 {
if(GetPrefBool(@"ksetCoin")) {
arg1 = 900;
%orig (arg1);
}
return %orig
}
^_^ Updated by ITz_kser
Posted

Like this:

 

%hook LikeHubUser

- (void)setCoins:(long) arg1 {

if(GetPrefBool(@"ksetCoin")) {

arg1 = 900;

%orig (arg1);

}

return %orig;

}

- (long)coins {

if(GetPrefBool(@"kCoin")) {

return 900;

}

return %orig;

}

%end

%hook MATUtils

+ (BOOL)checkJailBreak {

if(GetPrefBool (@"kcheckJailBreak")) {

return false;

}

return %orig;

}

%end

%hook SPJailbreakStatusProvider

+ (BOOL)isJailbroken {

if(GetPrefBool(@"kisJailbroken")) {

return false;

}

return %orig;

}

 

%end

Posted (edited)

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%hook LikeHubUser
- (void)setCoins:(long) arg1 {
if(GetPrefBool(@"ksetCoin")) {
arg1 = 900;
}
%orig (arg1);
}
- (long)coins {
if(GetPrefBool(@"kCoin")) {
return 900;
}
return %orig;
}
%end
%hook MATUtils
+ (BOOL)checkJailBreak {
if(GetPrefBool (@"kcheckJailBreak")) {
return false;
}
return %orig;
}
%end 
%hook SPJailbreakStatusProvider
+ (BOOL)isJailbroken {
if(GetPrefBool(@"kisJailbroken")) {
return false;
}
return %orig;
}

 

%end

 

 

 

 

It worked perfectly. Thanks impossible and all of you for your support!

Updated by KonpresoR

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

    • City Of Survivors v1.5.13 [+10 Jailed Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
      • 64 replies
    • City Of Survivors v1.5.13 [+10 Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
      • 84 replies
    • Bluey's Quest for The Gold Pen v1.1.1 +3++ Debug Mode
      Modded/Hacked App: Bluey: Let's Play! By Budge Studios
      Bundle ID: com.budgestudios.BlueyBLU
      App Store Link: https://apps.apple.com/us/app/bluey-lets-play/id1669091583?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Unlock full game
      - Debug mode
      - Unlimited currency
      • 4 replies
    • Zombie Roguebie: Shooting Game v1.2.2 Jailed Cheats +9
      Modded/Hacked App: Zombie Roguebie: Shooting Game By Metajoy Limited
      Bundle ID: com.boom.zombie.survival
      App Store Link: https://apps.apple.com/us/app/zombie-roguebie-shooting-game/id6752294198?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Infinite Ammo
      - No Reload
      - High Pickup Range
      - Premium

      ViP
      - God Mode
      - High Damage
      - High Fire Rate
      - Freeze Currencies
      - Unlock All Guns

       

      Jailbroken Hack: https://iosgods.com/topic/203205-zombie-roguebie-shooting-game-cheats-v122-9/


      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/203204-zombie-roguebie-shooting-game-v122-jailed-cheats-9/
      • 3 replies
    • Jolly Match 3 - Puzzle Game v1.0.2199 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
      • 15 replies
    • Jolly Match 3 - Puzzle Game v1.0.2199 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
      • 16 replies
    • Hello Town: Merge & Succeed v3.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Hello Town By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.hellotown
      iTunes Store Link: https://apps.apple.com/us/app/hello-town/id6737850281?uo=4


      Hack Features

      - Diamonds
      - Gold
      - Energy Freeze



      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 30 replies
    • Hello Town: Merge & Succeed v3.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Hello Town By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.hellotown
      iTunes Store Link: https://apps.apple.com/us/app/hello-town/id6737850281?uo=4

       

      Hack Features

      - Diamonds
      - Gold
      - Energy Freeze



      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 29 replies
    • Mr Autofire v4.4.4 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:
      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 60 replies
    • Mr Autofire v4.4.4 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:

      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 29 replies
    • Adventure Bay - Farm Games v1.54.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 58 replies
    • Adventure Bay - Farm Games v1.54.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 48 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