Jump to content

Tweak.xm


X204

19 posts in this topic

Recommended Posts

Posted

How to write codes in tweak.xm after hacking the game in IDA, because I can’t find this anywhere I tried to do it by myself but always got error when i try to make package .

Posted
11 hours ago, Joey said:

Weird topic. Maybe you should show your error & explain in detail what you have done so far?

@import Foundation;
@import UIKit;
#import <substrate.h>
#import "vm_writeData.h"

// To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-offsets/
// To Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject/
  
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.x204.fwdhack.plist"

inline bool GetPrefBool(NSString *key) {
        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
    // Code Injection example
    if(GetPrefBool(@"key1")) {
      vm_writeData(0x016BB4F4, 0x200080D2); // 
    }
}

This for example i make it to try to make tweak.mx file but can’t make package always error I don’t know if i make it correctly , i know how to chenge it in binary but can’t make tweak , offset 016BB4F4 hacked hex 200080D2C0035FD6

 
Posted
23 minutes ago, Joey said:

dude. As i said, what the hell is the error. We can’t just magically guess the error.

==> Preprocessing Tweak.xm…                             

==> Preprocessing Tweak.xm…                             

==> Compiling Tweak.xm (arm64)…                         

Tweak.xm:40:22: error: instance method '-openURL:options:completionHandler:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                      

        [application openURL:URL options:@{} completionHandler:^(BOOL success) {                                 

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   

/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:103:40: note: receiver is instance of class declared here               

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder                                               

                                       ^                

Tweak.xm:51:22: error: instance method '-openURL:options:completionHandler:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                      

        [application openURL:URL options:@{} completionHandler:^(BOOL success) {                                 

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   

/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:103:40: note: receiver is instance of class declared here               

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder                                               

                                       ^                

2 errors generated.                                     

make[3]: *** [/var/theos/makefiles/instance/rules.mk:269: /var/mobile/fwdhack1/.theos/obj/arm64/Tweak.xm.289a9040.o] Error 1                                              

make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/fwdhack1/.theos/obj/arm64/Fwdhack1.dylib] Error 2                                                  

make[2]: *** Waiting for unfinished jobs....            

==> Compiling Tweak.xm (armv7)…                         

Tweak.xm:40:22: error: instance method '-openURL:options:completionHandler:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                      

        [application openURL:URL options:@{} completionHandler:^(BOOL success) {                                 

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   

/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:103:40: note: receiver is instance of class declared here               

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder                                               

                                       ^                

Tweak.xm:51:22: error: instance method '-openURL:options:completionHandler:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                      

        [application openURL:URL options:@{} completionHandler:^(BOOL success) {                                 

                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   

/var/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:103:40: note: receiver is instance of class declared here               

NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder                                               

                                       ^                

2 errors generated.                                     

make[3]: *** [/var/theos/makefiles/instance/rules.mk:269: /var/mobile/fwdhack1/.theos/obj/armv7/Tweak.xm.a1e99472.o] Error 1                                              

make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/fwdhack1/.theos/obj/armv7/Fwdhack1.dylib] Error 2                                                  

make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2                        

make: *** [/var/theos/makefiles/master/rules.mk:123: Fwdhack1.all.tweak.variables] Error 2

Posted

You are using the openURL function for iOS 10+ SDK. By your errors, I see you have the iOS 9 SDK so replace them with:

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://example.com"]];

Or you can use an SDK with version >= 10. Have a nice day!

Posted
5 hours ago, bR34Kr said:

You are using the openURL function for iOS 10+ SDK. By your errors, I see you have the iOS 9 SDK so replace them with:


[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://example.com"]];

Or you can use an SDK with version >= 10. Have a nice day!

New error

 

ld: framework not found Preferences                     

Not signing file                                        

clang-5.0: error: linker command failed with exit code 1

(use -v to see invocation)                              

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/armv7/Fwdhack1.bundle/Fwdhack1] Error 1                                         

==> Linking bundle Fwdhack1 (arm64)…                    

ld: framework not found Preferences                     

Not signing file                                        

clang-5.0: error: linker command failed with exit code 1

(use -v to see invocation)                              

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/arm64/Fwdhack1.bundle/Fwdhack1] Error 1                                         

make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/armv7/Fwdhack1.bundle/Fwdhack1] Error 2                                         

make[3]: *** Waiting for unfinished jobs....            

make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/arm64/Fwdhack1.bundle/Fwdhack1] Error 2                                         

make[2]: *** [/var/theos/makefiles/instance/bundle.mk:26: internal-bundle-all_] Error 2                          

make[1]: *** [/var/theos/makefiles/master/rules.mk:123: Fwdhack1.all.bundle.variables] Error 2                   

make: *** [/var/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2

Posted
3 hours ago, X204 said:

New error

 

ld: framework not found Preferences                     

Not signing file                                        

clang-5.0: error: linker command failed with exit code 1

(use -v to see invocation)                              

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/armv7/Fwdhack1.bundle/Fwdhack1] Error 1                                         

==> Linking bundle Fwdhack1 (arm64)…                    

ld: framework not found Preferences                     

Not signing file                                        

clang-5.0: error: linker command failed with exit code 1

(use -v to see invocation)                              

make[4]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/arm64/Fwdhack1.bundle/Fwdhack1] Error 1                                         

make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/armv7/Fwdhack1.bundle/Fwdhack1] Error 2                                         

make[3]: *** Waiting for unfinished jobs....            

make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/mobile/fwdhack1/.theos/obj/arm64/Fwdhack1.bundle/Fwdhack1] Error 2                                         

make[2]: *** [/var/theos/makefiles/instance/bundle.mk:26: internal-bundle-all_] Error 2                          

make[1]: *** [/var/theos/makefiles/master/rules.mk:123: Fwdhack1.all.bundle.variables] Error 2                   

make: *** [/var/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2

Are you using iOS 10 SDK?

Posted
12 minutes ago, bR34Kr said:

Are you using iOS 10 SDK? 

10.3 it was 9.3 before but I change it

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Matching Story - Puzzle Games v1.56.01 [ +6 APK MOD ] Auto Win
      Mod APK Game Name: Matching Story - Puzzle Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.joycastle.mergematch&hl=en

      🤩 Hack Features

      - Auto Win
      - Unlimited Coins
      - Unlimited  Diamonds [ Win Match Linked With Moves ]
      - Unlimited  Lives
      - Unlimited  Booster
      - Unlimited  Moves
      • 1 reply
    • Dream Master-Match Buster v5.20 [ +3 APK MOD ] Auto Win
      Mod APK Game Name: Dream Master-Travel Puzzle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.match.busters.free.gp&hl=en

      🤩 Hack Features

      - Auto Win
      - Unlimited Coins / Disable After Hack
      - Lives 0 Play Unlimited
      • 2 replies
    • Chef Treat v1.0.12 [ +1 APK MOD ] Auto Win
      Mod APK Game Name: Chef Treat
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.match.cheftreat.android&hl=en

      🤩 Hack Features

      - Auto Win / Before Match ON
      • 2 replies
    • Goblin Miner: Idle Merger v3.9.0 [ +5 APK MOD ] Coins Unlimited
      Mod APK Game Name: Goblin Miner: Idle Merger
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.goblins.idle.merge.game&hl=en

       

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 8 replies
    • Candy Pop Story : Match 3 v7.72.1230 [ +3 APK MOD ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4

       

      Mod APK Game Name: 
      Rooted Device: Not Required.
      Google Play Store Link: 

       

      🤩 Hack Features

      - Auto Win
      - Unlimited Coins
      - Unlimited Moves

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 2 replies
    • Castle Crush v2.38.0 [ +6 APK MOD  ] Auto Win
      Mod APK Game Name: Castle Crush
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.mibo.CastleCrush&hl=en

      🤩 Hack Features

      - Auto Win / Just Hit Target
      - Unlimited Coins / Visual But Works
      - Unlimited Stars / Visual But Works / Earn 1 Then Use For All Task
      - Unlimited Lives / Visual But Works
      - Unlimited Booster / Visual Butt Works / Earn 1 Then Use Inf
      - Moves Freeze
      • 3 replies
    • Trailer Park Boys Greasy Money Cheats (Auto Update) +1
      Modded/Hacked App: Trailer Park Boys Greasy Money By East Side Games Inc
      Bundle ID: com.eastsidegames.trailerparkboys
      App Store Link: https://apps.apple.com/us/app/trailer-park-boys-greasy-money/id1087557519?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

      - Freeze Currencies

       

      Non-Jailbroken Hack: https://iosgods.com/topic/86696-trailer-park-boys-greasy-money-auto-update-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/86637-trailer-park-boys-greasy-money-cheats-auto-update-1/
      • 239 replies
    • Darkest Hero! v0.0.95 [ +4 APK MOD ] Currency Max
      Mod APK Game Name: Darkest Hero! By MINIDRAGON LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.minidragon.randomdungeon&hl=en_US

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 20 replies
    • Adventure Bay - Farm Games v1.56.16 [ +4 APK MOD ] Currency Max
      Mod APK Game Name: Adventure Bay - Farm Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.gamegos.adventure.bay.paradise.farm&hl=en_US

       

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Avatar Unlock
      • 4 replies
    • Gear Defenders v1.2.2 |+9 APK MOD | Currency Max
      Mod APK Game Name: Gear Defenders By MOBIBRAIN TECHNOLOGY PTE. LTD.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.iogame.gearworld&hl=en

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited ADS Tickets
      - Unlimited Draw
      - Unlimited Battle Coins
      - Base HP
      - Gear Speed / Faster Deploy Trop
      - Unlimited Trop / Easy Win
      - ATK / Linked
      • 15 replies
    • ZombTube Last Hero Zombie War v0.1.453 [ +10 APK MOD ] Currency Max
      Mod APK Game Name: ZombTube: Last Hero Zombie War
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.booblyc.zombtube&hl=en
      🤩 Hack Features

      - No ADS
      - Unlimited Red coins
      - Unlimited Gold
      - Parts / Upgrade Free Guns-Items
      - Damage
      - Bullet Range
      - Gun Range
      - Unlimited Ammo
      - No Reload
      - Accuracy
      • 2 replies
    • Hill Climb Racing 2 Cheats v1.70.4 +1
      Modded/Hacked App: Hill Climb Racing 2 By Fingersoft
      Bundle ID: com.fingersoft.hillclimbracing2
      iTunes Store Link: https://apps.apple.com/us/app/hill-climb-racing-2/id1146465836?uo=4


      Hack Features:
      - Freeze Coins
      - Freeze Gems
      - Freeze Scraps


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/108295-hill-climb-racing-2-v1611-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/108298-hill-climb-racing-2-v1612-cheats-3/
      • 2,215 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