Jump to content

Tweak.xm


X204

19 posts in this topic

Recommended Posts

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 .

Link to comment
Share on other sites

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

 
Updated by Zahir
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • TALION By GAMEVIL Inc. v5.7.80 +1 [Speed multiplier]
      Modded/Hacked App: TALION By GAMEVIL Inc.
      Bundle ID: com.gamevil.talion.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/talion/id1258046552?uo=4



      Hack Features:
      - Attack Speed Multiplier Unlinked
      - More coming later


      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/
      • 295 replies
    • SpearKnight Kr - 창술사 키우기-방치형RPG v2.0.38 +3 Cheat
      Modded/Hacked App: 창술사 키우기-방치형RPG By Changgon Woo
      Bundle ID: com.dragonheart.spearknighrpg
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%B0%BD%EC%88%A0%EC%82%AC-%ED%82%A4%EC%9A%B0%EA%B8%B0-%EB%B0%A9%EC%B9%98%ED%98%95rpg/id1584649578?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Loot Multiplier


      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 56 replies
    • NecroMerger - Idle Merge Game v1.49 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: NecroMerger - Idle Merge Game By Grumpy Rhino Games LTD
      Bundle ID: com.grumpyrhinogames.necromerger
      iTunes Store Link: https://apps.apple.com/us/app/necromerger-idle-merge-game/id1611769159
       

      Hack Features:
      - Unlimited Currencies -> Will not decrease and can always afford whatever you're buying.


      Jailbreak required hack(s): [Mod Menu Hack] NecroMerger - Idle Merge Game v1.01 +1++ Cheat [ 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/
      • 18 replies
    • NecroMerger - Idle Merge Game v1.49 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: NecroMerger - Idle Merge Game By Grumpy Rhino Games LTD
      Bundle ID: com.grumpyrhinogames.necromerger
      iTunes Store Link: https://apps.apple.com/us/app/necromerger-idle-merge-game/id1611769159
       

      Hack Features:
      - Unlimited Currencies -> Will not decrease and can always afford whatever you're buying.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] NecroMerger - Idle Merge Game v1.01 +1++ Cheat [ 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/
      • 14 replies
    • MineGeon: Space Mining Dungeon v1.16.4 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MineGeon: Space Mining Dungeon By KICKSTONE STUDIO SPA
      Bundle ID: com.KickStoneStudios.MineGeon
      iTunes Store Link: https://apps.apple.com/us/app/minegeon-space-mining-dungeon/id6443925239?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.
      - God Mode
      - One-Hit Kill
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] MineGeon: Space Mining Dungeon v1.15.6 +6 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/
      • 9 replies
    • MineGeon: Space Mining Dungeon v1.16.4 +6 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MineGeon: Space Mining Dungeon By KICKSTONE STUDIO SPA
      Bundle ID: com.KickStoneStudios.MineGeon
      iTunes Store Link: https://apps.apple.com/us/app/minegeon-space-mining-dungeon/id6443925239?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.
      - God Mode
      - One-Hit Kill
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MineGeon: Space Mining Dungeon v1.15.6 +6 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/
      • 17 replies
    • Forza Customs - Restore Cars v4.0.10087 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Forza Customs - Restore Cars By Hutch Games Ltd
      Bundle ID: com.hutchgames.ccw
      iTunes Store Link: https://apps.apple.com/us/app/forza-customs-restore-cars/id6448070968?uo=4


      Hack Features:
      - Unlimited Currencies
      - Unlimited Lives -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Forza Customs - Restore Cars v0.9.6395 +2 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/
      • 55 replies
    • Forza Customs - Restore Cars v4.0.10087 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Forza Customs - Restore Cars By Hutch Games Ltd
      Bundle ID: com.hutchgames.ccw
      iTunes Store Link: https://apps.apple.com/us/app/forza-customs-restore-cars/id6448070968?uo=4


      Hack Features:
      - Unlimited Currencies
      - Unlimited Lives -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Forza Customs - Restore Cars v0.9.6395 +2 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/
      • 33 replies
    • Modern Community v1.4006.107228 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP 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/
      • 36 replies
    • Modern Community v1.4006.107228 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & 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/
      • 41 replies
    • Garden Affairs: Design & Match v2.5604 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Garden Affairs: Design & Match By JUDIAN TECHNOLOGY INTERNATIONAL PTE. LTD.
      Bundle ID: com.huayuan.xiaochu
      iTunes Store Link: https://apps.apple.com/us/app/garden-affairs-design-match/id1514355595?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stars


      Jailbreak required hack(s): [Mod Menu Hack] Garden Affairs: Design & Match v2.4601 +2 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/
      • 36 replies
    • Garden Affairs: Design & Match v2.5604 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Garden Affairs: Design & Match By JUDIAN TECHNOLOGY INTERNATIONAL PTE. LTD.
      Bundle ID: com.huayuan.xiaochu
      iTunes Store Link: https://apps.apple.com/us/app/garden-affairs-design-match/id1514355595?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stars


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Garden Affairs: Design & Match v2.4601 +2 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/
      • 39 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