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

    • The Walking Dead: All-Stars Cheats v1.37.2 +4
      Modded/Hacked App: The Walking Dead: All-Stars By Com2uS Holdings Corporation
      Bundle ID: com.gamevil.gvtwd.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/the-walking-dead-all-stars/id1570395238?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - Auto Win
       

      iOS Hack Download Link: https://iosgods.com/topic/186370-the-walking-dead-all-stars-cheats-v1292-4/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 109 replies
    • Dragon City - Breed & Battle! Cheats v25.6.1 +4
      Modded/Hacked App: Dragon City - Breed & Battle! By Socialpoint
      Bundle ID: es.socialpoint.dragoncity
      iTunes Store Link: https://apps.apple.com/us/app/dragon-city-breed-battle/id561941526?uo=4


      Hack Features:
      - One Hit Kill
      - God Mode 
      - Auto-Battle Unlocked

      This hack is using the new iOSGods Auto Updater. The hack will automatically update itself to the current app version you have installed on your iDevice.
      Note:
      Everything is linked with enemies, please use it carefully

      This hack works on the latest x64 or ARM64 & ARM64e iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, 11, 11 Pro, 11 Pro Max, 12, 12 Pro, 12 Pro Max, 12 Mini, 13, 13 Pro, 13 Pro Max, 13 Mini, 14, 14 Plus, 14 Pro, 14 Pro Max, SE, iPod Touch 6G, 7G, iPad Air, Air 2, iPad Pro & iPad Mini 2, 3, 4, 5, 6 and later.


      iOS Hack Download Link: https://iosgods.com/topic/129371-dragon-city-mobile-cheats-auto-updating-3-god-mode-one-hit-kill/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,173 replies
    • RollerCoaster Tycoon Touch Cheats v3.43.1 +5
      Modded/Hacked App: RollerCoaster Tycoon® Touch™ By Atari, Interactive
      Bundle ID: com.atari.mobile.rctempire
      iTunes Store Link: https://apps.apple.com/us/app/rollercoaster-tycoon-touch/id1164507836?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

      - Infinite Currencies
      - Instant Max Level (Complete some task - Only use when you finished Tutorial and get to Level 8 at least)
      - VIP Member
      - Card only need 1 to be upgraded

       

      Non-Jailbroken Hack: https://iosgods.com/topic/74948-rollercoaster-tycoon-touch-v3413-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/73710-rollercoaster-tycoon-touch-cheats-v3420-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,109 replies
    • Family Island — Farm game v2025134.0.72578 Jailed Cheats +1
      Modded/Hacked App: Family Island™ — Farm game by Melsoft
      Bundle ID: com.MelsoftGames.FamilyIsland
      iTunes Store Link: https://apps.apple.com/us/app/family-island-farm-game/id1464689103?uo=4&at=1010lce4


      Hack Features:
      - Cheat Engine Enabled


      iOS Hack Download Link: https://iosgods.com/topic/115337-arm64-family-island-%E2%80%94-farm-game-v20190824862-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,282 replies
    • Left to Survive: Zombie Games Cheats v7.5.3 +10 Hacks
      Modded/Hacked App: Left to Survive: Zombie TPS By MY COM
      Bundle ID: com.glu.zbs
      iTunes Store Link: https://apps.apple.com/us/app/left-to-survive-zombie-tps/id1090501422

      Hack Features:
      - No Bullet Disperse 
      - Unlimited Ammo
      - No Recoil
      - Increased Fire-rate 

      - One Hit Campaign 
      - Grenades and Med-kits Dont Subtract
      - God Mode
      - God Mode PVP

      - Unlock Chapters early 
      - Weapons Unlocked Ready to buy 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,579 replies
    • AVABEL LUPINUS v3.6.2 - [ God Mode & More ]
      Modded/Hacked App: AVABEL LUPINUS By ASOBIMO,Inc.
      Bundle ID: com.asobimo.pokebel
      iTunes Store Link: https://apps.apple.com/us/app/avabel-lupinus/id1361520826?uo=4&at=1010lce4

      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:
      - x Attack Multiplier - x1 - 10
      - Collision Range - x1 - 10
      - God Mode 
      - Cast Speed Multiplier
      - Charge Speed Multiplier
      - Approach Speed Multiplier
      - No Roll CoolDown
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 798 replies
    • RPG AVABEL ONLINE Cheats v11.17.2 - [ God Mode & More ]
      Modded/Hacked App: RPG AVABEL ONLINE By ASOBIMO,Inc.
      Bundle ID: com.asobimo.AvabelOnline
      iTunes Store Link: https://itunes.apple.com/us/app/rpg-avabel-online/id606800657
       

      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:
      - God Mode 
      - Cast Speed Multiplier
      - Charge Speed Multiplier
      - Approach Speed Multiplier
      - No Roll CoolDown
      - No Skills CoolDown

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,145 replies
    • Crashlands 2 v100.1.437 +2 Jailed Cheats [ One-Hit Kill ]
      Modded/Hacked App: Crashlands 2 By Butterscotch Shenanigans, Inc.
      Bundle ID: com.bscotch.crashlands2
      iTunes Store Link: https://apps.apple.com/us/app/crashlands-2/id1528199331?uo=4

       


      🤩 Hack Features

      - One-Hit Kill
      - No Skill Cooldown
        • Agree
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Crashlands 2 v100.1.437 +2 Cheats [ One-Hit Kill ]
      Modded/Hacked App: Crashlands 2 By Butterscotch Shenanigans, Inc.
      Bundle ID: com.bscotch.crashlands2
      iTunes Store Link: https://apps.apple.com/us/app/crashlands-2/id1528199331?uo=4

       
       

      🤩 Hack Features

      - One-Hit Kill
      - No Skill Cooldown
        • Informative
        • Winner
        • Like
      • 20 replies
    • Nightfall: Kingdom Frontier TD v1.0.382 +8 Jailed Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 82 replies
    • Nightfall: Kingdom Frontier TD v1.0.382 +8 Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 98 replies
    • Hero-Tower Defense v1.6 [+3 Jailed Cheats]
      Modded/Hacked App: Hero-Tower Defense By 家傲 郭
      Bundle ID: com.jianya.herotd
      App Store Link: https://apps.apple.com/us/app/hero-tower-defense/id6743142617?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources
      - Freeze Battle Diamond
        • Like
      • 1 reply
×
  • 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