Jump to content

11 posts in this topic

Recommended Posts

Posted

I'm making a hack with preference bundle and I keep getting the error when compiling : %end doesn't make sense inside a block.

 

tweak.xm:

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.sunny.poucheats.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook Coins
-(int)have {
if(GetPrefBool(@"key1")) {
return 987654321;
}
return %orig;
}
%end

%hook Coins
-(int)spent { 
if(GetPrefBool(@"key2")) {
return 0;
}
return %orig;
}
%end

%hook Coins
-(int)cheated {
if(GetPrefBool(@"key3")) {
return 0;
}
return %orig;
}
%end

%hook State
-(int)setLevel {
if(GetPrefBool(@"key4")) {
return 270;
}
return %orig;
}
%end

%hook State
-(void)setHungry:(bool)argument {
if(GetPrefBool(@"key5")) {
argument = false;
}
return %orig;
}
%end

%hook AppDelegate
-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Pou Cheats!"
message:@"Made by Sunny Patel" 
delegate:self
cancelButtonTitle:@"Thanks"
otherButtonTitles:@"Subscribe to My Channel!", nil]; 
[credits show];
[credits release]; 
%orig();
}

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Subscribe to My Channel!"])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny"]]; 
}
%end

 

plist for preference bundle:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>A Lot of Coins</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.poucheats</string>
            <key>key</key>
            <string>key1</string>
            <key>label</key>
            <string>ManyCoins</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>No Coins Spent</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.poucheats</string>
            <key>key</key>
            <string>key2</string>
            <key>label</key>
            <string>NoSpendingCoins</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>No Cheat Detection MUST BE TURNED ON!!!!!!</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.poucheats</string>
            <key>key</key>
            <string>key3</string>
            <key>label</key>
            <string>NoCheatDetection</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>High Level</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.poucheats</string>
            <key>key</key>
            <string>key4</string>
            <key>label</key>
            <string>HighLevel</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>Pou is Not Hungry</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.poucheats</string>
            <key>key</key>
            <string>key5</string>
            <key>label</key>
            <string>PouNotHungry</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSTextCell</string>
            <key>label</key>
            <string>Made by Sunny Patel.</string>
        </dict>
        <dict>
            <key>action</key>
            <string>link</string>
            <key>cell</key>
            <string>PSButtonCell</string>
            <key>icon</key>
            <string>[email protected]</string>
            <key>label</key>
            <string>Subscribe to My Channel!</string>
        </dict>
    </array>
    <key>title</key>
    <string>Pou Cheats</string>
</dict>
</plist>

 

 

Posted (edited)

In your %new section you have 2 beginnings "{", but only one end "}"

Its expecting a 2nd "}" before the %end I believe.

Im driving while reading this so hope that helps narrow down the problem.

Edit:

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Subscribe to My Channel!"])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny"]]; 
}
	}  //You're missing this
%end
	

Updated by i0s_tweak3r
Showing fixed code
Posted

@HxR I think you're missing a " } " 

Try this

%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Subscribe to My Channel!"])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny"]]; 
}
	}
%end

Posted
6 hours ago, i0s_tweak3r said:

In your %new section you have 2 beginnings "{", but only one end "}"

Its expecting a 2nd "}" before the %end I believe.

Im driving while reading this so hope that helps narrow down the problem.

Edit:

 


%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Subscribe to My Channel!"])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny"]]; 
}
	}  //You're missing this
%end
	

 

:facepalm: you just copied me

Posted
6 hours ago, i0s_tweak3r said:

In your %new section you have 2 beginnings "{", but only one end "}"

Its expecting a 2nd "}" before the %end I believe.

Im driving while reading this so hope that helps narrow down the problem.

Edit:

 


%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
if([button isEqualToString:@"Subscribe to My Channel!"])
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny"]]; 
}
	}  //You're missing this
%end
	

 

 

Stop Copying @KFCzZz , I will sue you :rofl: 

Posted
2 minutes ago, KFCzZz said:

:facepalm: you just copied me

Lmao I was gonna say the same.... But you posted after I hit "Edit" but b4 I saved.  Your code just copied what I said b4 the edit tho. ?

4 minutes ago, TheArmKing said:

Stop Copying @KFCzZz , I will sue you :rofl: 

Im sueing both of you! I was first darn it.  And I spotted the error at 80 mph at a glance haha.  

Posted
3 minutes ago, i0s_tweak3r said:

Lmao I was gonna say the same.... But you posted after I hit "Edit" but b4 I saved.  Your code just copied what I said b4 the edit tho. ?

Im sueing both of you! I was first darn it.  And I spotted the error at 80 mph at a glance haha.  

 

Ok , lets bring it on to the court case , we have substantial prove your post was edited :troll: which makes you in the red light 

Posted (edited)
42 minutes ago, TheArmKing said:

Ok , lets bring it on to the court case , we have substantial prove your post was edited :troll: which makes you in the red light 

I'm sure this fancy new BB format has timestamps of time that "Edit" was hit and time "Submit Reply" was hit. 

Nothing was edited, the code was added. My post b4 the edit still spelled out pretty clearly what and where the error was.   Besides- mine had the pretty "// this is what you're missing", making it original content. ?

Let me be right for once, lol.  :badass:

 

 

Updated by i0s_tweak3r

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

    • Ice Age Adventures Cheats v2.0.1 +1
      Modded/Hacked App: Ice Age Adventures By Gameloft
      Bundle ID: com.gameloft.iceageadventures
      App Store Link: https://apps.apple.com/us/app/ice-age-adventures/id632437966?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Store (not Free iAP)



      Free Non-Jailbroken Hack: https://iosgods.com/topic/147897-ice-age-adventures-v201-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147809-ice-age-adventures-cheats-v201-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 34 replies
    • Ice Age Village Cheats v3.6.4 +1
      Modded/Hacked App: Ice Age Village By Gameloft
      Bundle ID: com.gameloft.IceAge
      App Store Link: https://apps.apple.com/us/app/ice-age-village/id467577200?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Store (not Free iAP)

       

      Free Non-Jailbroken Hack: https://iosgods.com/topic/147806-ice-age-village-v364-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147802-ice-age-village-cheats-v364-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 46 replies
    • Mr Autofire Cheats v4.0.1 +3 [ God Mode & More ]
      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

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode 
      - One Hit Kill
      - Free Store

       

      Non-Jailbroken Hack: https://iosgods.com/topic/134805-mr-autofire-v380-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/134788-mr-autofire-cheats-v380-3-god-mode-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 635 replies
    • Grim Soul: Survival v7.3.3 +19 Cheats [Unlimited Currencies + More]
      Modded/Hacked App: Grim Soul: Survival By Andrey Pryakhin
      Bundle ID: fantasy.survival.game.rpg
      iTunes Store Link: https://itunes.apple.com/us/app/grim-soul-survival/id1366215798


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Thalers/Coins & Crafting Points - Once enabled, purchase something using coins & use a craft point so the currencies stick, then disable this feature.
      - Unlimited Storage Items - Taking storage items will increase them.
      - Unlimited Energy / Instant Energy Refills - Will refill your energy once you run to another location.
      - Godmode - Unlinked. Health will still decrease but you won't die.
      - One-Hit Kill - Linked to the enemy. Would recommend enabling 'Godmode'.
      - Increased Attack Range - Allows you to kill enemies from some distance away.
      - Free Crafting - Will allow you to craft items without the required materials.
      - No Crafting Level Requirement
      - Free Construction
      - Items Duplicate When Split
      - Unlimited Item Durability
      - x2 Player Speed
      - x3 Player Speed
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5,054 replies
    • Hero Z: Idle defense v0.0.7 [+2 Cheats]
      Modded/Hacked App: Hero Z: Idle defense By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.heroz
      App Store Link: https://apps.apple.com/us/app/hero-z-idle-defense/id6478379131?uo=4



      🤩 Hack Features

      - Never Die
      - Activate Priv Pass (You can't claim diamonds but all the features enabled. Skip ads, More stamina cap etc.)
       
        • Haha
        • Thanks
        • Winner
      • 2 replies
    • Hero Z: Idle defense v0.0.7 [+2 Jailed Cheats]
      Modded/Hacked App: Hero Z: Idle defense By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.heroz
      App Store Link: https://apps.apple.com/us/app/hero-z-idle-defense/id6478379131?uo=4



      🤩 Hack Features

      - Never Die
      - Activate Priv Pass (You can't claim diamonds but all the features enabled. Skip ads, More stamina cap etc.)
        • Winner
      • 1 reply
    • Jolly Match 3 - Puzzle Game v1.0.1884 [ +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
      • 1 reply
    • Jolly Match 3 - Puzzle Game v1.0.1884 [ +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
      • 1 reply
    • Cannon Heroes X v1.2.19 [+3 Jailed Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
        • Winner
        • Like
      • 1 reply
    • Cannon Heroes X v1.2.19 [+3 Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
       
        • Winner
        • Like
      • 1 reply
    • Archero Cheats v6.14.0 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 15,861 replies
    • Galaxy Defense: Fortress TD v0.9.2 [+2 Cheats]
      Modded/Hacked App: Galaxy Defense: Fortress TD By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.galaxydefense
      App Store Link: https://apps.apple.com/us/app/galaxy-defense-fortress-td/id6740189002?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Activate SVIP
       
        • Agree
        • Thanks
        • Winner
        • Like
      • 29 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