Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)

Hey, Guys i am developing tweaks with Theos but this is my first time to create an iosgods preference patcher 

 

Here are picture take a look at it:

But if you know what is wrong to the code tweak.xm code is included

 

 

 

Here is my tweak.xm

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>
 
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.demy076.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%ctor {
if(GetPrefBool(@"key1")) {
writeData(0xOFFSET, 0xHEX);
} else {
}
 
 
if(GetPrefBool(@"key2")) {
writeData(0x10963C, 0xC0F8AC70);
} else {
}
 
 
if(GetPrefBool(@"key3")) {
writeData(0x10ACEA, 0xC0F8C871);
} else {
}
 
 
if(GetPrefBool(@"key4")) {
writeData(0x1806B8, 0x381C);
writeData(0x2FA51C, 0x381C);
writeData(0x1806B8, 0x7047);
writeData(0x1806B8, 0x7047);
} else {
}
 
}
 
 
 
 
/* Popup with a link 
 
*/
 
 
%hook AppDelegate // 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:@"Pref Cheats" 
                                                  message:@"\nPref Cheats by demy kromhof 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:@"https://iosgods.com/"]];                                                                                
}
}
%end
Updated by Amuyea
Posted

This is a link for the error

https://imgur.com/a/lP1LG

Here

If I use there ctor like this

%ctor

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

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

 

It will give more sdk error but Idk what to do

Posted

I know but that doesn't work either so

Ow yeah

You can't use %hook if you do this test.test

If you use this (.) because the dot is like a swift class so

%hook boom.bmanalysehandler

-(bool) isVipUser {

return true;

}

%end

It will lead into errors

 

That is why you got to use %ctor but that was an mistake

 

 

If you want to fix that error then you got to use %ctor

 

Like this:

%ctor {

%init(SwiftClass = objc_getClass("Boom.BMAnalyticsHandler"));

}

%hook

-(bool) Boom.BMAnalyticsHandler:(id) arg1 {

return true;

}

%end

So I fixed it the previous time for my boom tweak

But now it doesn't work

Posted

ARCHS = armv7 arm64

TARGET = iphone:clang:latest:latest

#CFLAGS = -fobjc-arc

#THEOS_PACKAGE_DIR_NAME = debs

 

include $(THEOS)/makefiles/common.mk

 

TWEAK_NAME = Pref

Pref_FILES = Tweak.xm

Pref_FRAMEWORKS = UIKit

Pref_LDFLAGS += -Wl,-segalign,4000

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

SUBPROJECTS += Pref

include $(THEOS_MAKE_PATH)/aggregate.mk

Show me your makefile

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

    • Sword Master Story Cheats v4.136.574 +5
      Modded/Hacked App: Sword Master Story By SuperPlanet corp.
      Bundle ID: com.superplanet.swordmaster
      iTunes Store Link: https://apps.apple.com/us/app/sword-master-story/id1521447065?uo=4


      Hack Features:
      - Custom Player Stats
      - Weak Enemies
      - One Hit Kill
      - & More

      Press & Hold to read feature description


      iOS Hack Download Link: https://iosgods.com/topic/146819-sword-master-story-cheats-v42294-3/
      • 1,477 replies
    • Pudgy Party - Battle Royale v0.11.5 +7 Jailed Cheats [ Speed, Gravity + More ]
      Modded/Hacked App: Pudgy Party - Battle Royale By Mythical, Inc.
      Bundle ID: com.mythical.pudgyparty
      App Store Link: https://apps.apple.com/us/app/pudgy-party-battle-royale/id6744258913?uo=4

       
       

      🤩 Hack Features

      - Jump Height Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Gravity Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Speed Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Friction Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Freeze Bots
      - Dumb Bots
      - Free In-App Purchases
      • 2 replies
    • Mythic Heroes: Idle RPG v1.43.0 +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Mythic Heroes: Idle RPG By IGG SINGAPORE PTE. LTD.
      Bundle ID: com.igg.ios.mh
      App Store Link: https://apps.apple.com/us/app/mythic-heroes-idle-rpg/id1580031550?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Auto Win
      • 10 replies
    • Mythic Heroes: Idle RPG v1.43.0 +4 Cheats [ Damage & Defence ]
      Modded/Hacked App: Mythic Heroes: Idle RPG By IGG SINGAPORE PTE. LTD.
      Bundle ID: com.igg.ios.mh
      App Store Link: https://apps.apple.com/us/app/mythic-heroes-idle-rpg/id1580031550?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Auto Win
      • 8 replies
    • Pudgy Party - Battle Royale v0.11.5 +7 Cheats [ Speed, Gravity + More ]
      Modded/Hacked App: Pudgy Party - Battle Royale By Mythical, Inc.
      Bundle ID: com.mythical.pudgyparty
      App Store Link: https://apps.apple.com/us/app/pudgy-party-battle-royale/id6744258913?uo=4

       


      🤩 Hack Features

      - Jump Height Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Gravity Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Speed Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Friction Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Freeze Bots
      - Dumb Bots
      - Free In-App Purchases
      • 3 replies
    • Tasty Travels: Merge Game v36.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 26 replies
    • Tasty Travels: Merge Game v36.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 22 replies
    • Road Trip: Merge Family Games! v2506.1.2 +6 Jailed Cheats [ Unlimited Cash ]
      Modded/Hacked App: Road Trip: Merge Family Games! By VIZOR APPS LTD
      Bundle ID: com.vizor-apps.Road-Trip
      App Store Link: https://apps.apple.com/us/app/road-trip-merge-family-games/id6471364763?uo=4

       


      🤩 Hack Features

      - Freeze Merge Energy
      - Freeze Energy
      - Freeze Cash

      VIP
      - Unlimited Merge Energy -> Spend some then restart the game.
      - Unlimited Energy -> Spend some then restart the game.
      - Unlimited Cash -> Spend some then restart the game.
      • 0 replies
    • Road Trip: Merge Family Games! v2506.1.2 +6 Cheats [ Unlimited Cash ]
      Modded/Hacked App: Road Trip: Merge Family Games! By VIZOR APPS LTD
      Bundle ID: com.vizor-apps.Road-Trip
      App Store Link: https://apps.apple.com/us/app/road-trip-merge-family-games/id6471364763?uo=4

       


      🤩 Hack Features

      - Freeze Merge Energy
      - Freeze Energy
      - Freeze Cash

      VIP
      - Unlimited Merge Energy -> Spend some then restart the game.
      - Unlimited Energy -> Spend some then restart the game.
      - Unlimited Cash -> Spend some then restart the game.
      • 0 replies
    • MWT: Tank Battles v1.11.0 Jailed Cheats +5
      Modded/Hacked App: MWT: Tank Battles By ARTSTORM FZE
      Bundle ID: com.Shooter.ModernWarfront
      iTunes Store Link: https://apps.apple.com/us/app/mwt-tank-battles/id6469805187?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - Freeze Boosters
      - Free Subscription?
      + 10% EXP
      + 50% Cash / Gold


      iOS Hack Download IPA Link: https://iosgods.com/topic/188441-mwt-tank-battles-v121-jailed-cheats-5/
      • 180 replies
    • Plants vs. Zombies v3.11.0 Jailed Cheats +5
      Modded/Hacked App: Plants vs. Zombies™ By EA Swiss Sarl
      Bundle ID: com.ea.pvzfree.bv
      iTunes Store Link: https://apps.apple.com/us/app/plants-vs-zombies/id893677096?uo=4


      Hack Features

      - Infinite Sun
      - Infinite Fertilizer, BugSpray, and Chocolate
      - Infinite Coins
      - Infinite Plants Life
      - No Cooldown

      Author: https://iosgods.com/profile/37846-asianqueen/

      Complete tutorial before using any hacked features or you will stuck forever



      iOS Hack Download IPA Link https://iosgods.com/topic/191088-plants-vs-zombies%E2%84%A2-v381-jailed-cheats-5/
      • 42 replies
    • [ Arknights KR ] 명일방주 Cheats v30.5.02 +8 - [ God Mode & More ]
      Modded/Hacked App: 명일방주 By YOSTAR (HONG KONG) LIMITED
      Bundle ID: com.YoStarKR.Arknights
      iTunes Store Link: https://apps.apple.com/kr/app/%EB%AA%85%EC%9D%BC%EB%B0%A9%EC%A3%BC/id1473903308?uo=4


      Hack Features:
      - God Mode
      - Frozen Enemies
      - One Hit Kill
      - Instant - Win
      - No Deploy Cost
      - Multiply Damage
      - Multiply Defense
      - Multiply Character Speed


      iOS Hack Download Link: https://iosgods.com/topic/164929-arknights-kr-%EB%AA%85%EC%9D%BC%EB%B0%A9%EC%A3%BC-cheats-v12001-8-god-mode-more/
      • 58 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