Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

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

    • Pal Go: Tower Defense TD v0.4.41 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 69 replies
    • Pal Go: Tower Defense TD v0.4.41 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 93 replies
    • Margonem Adventures v2.4.3 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
      • 23 replies
    • Margonem Adventures v2.4.3 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Winner
      • 15 replies
    • Same Room Same Day: Pocket v0.0.38 [+3 Cheats]
      Modded/Hacked App: Same Room Same Day: Pocket By Eduard Malkhasyan
      Bundle ID: com.bugigamesIOS.SameRoomSameDay
      iTunes Store Link: https://apps.apple.com/us/app/same-room-same-day-pocket/id6742232597?uo=4

       

      🤩 Hack Features

      - Full Game Unlocked
      - Never Die
      - Unlimited Ammo
        • Like
      • 11 replies
    • Same Room Same Day: Pocket v0.0.38 [+3 Jailed Cheats]
      Modded/Hacked App: Same Room Same Day: Pocket By Eduard Malkhasyan
      Bundle ID: com.bugigamesIOS.SameRoomSameDay
      iTunes Store Link: https://apps.apple.com/us/app/same-room-same-day-pocket/id6742232597?uo=4

       

      🤩 Hack Features

      - Full Game Unlocked
      - Never Die
      - Unlimited Ammo
      • 17 replies
    • Military Games - Border Wars v14.0 [+3 Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)

       
      • 3 replies
    • Military Games - Border Wars v14.0 [+3 Jailed Cheats]
      Modded/Hacked App: Military Games - Border Wars By Faraz Khan
      Bundle ID: com.zalmayapps.borderwars
      App Store Link: https://apps.apple.com/us/app/military-games-border-wars/id1609310806?uo=4



      🤩 Hack Features

      - Unlimited Gold
      - Auto Win (Enable inside battle)
      - Unlimited Money (Enable inside battle)
      • 3 replies
    • Knights of Pen and Paper 3 v1.6.2 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 8 replies
    • Knights of Pen and Paper 3 v1.6.2 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 13 replies
    • Seaside Escape®: Merge & Story v1.86.0 [+2 Jailed Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
      • 24 replies
    • Seaside Escape®: Merge & Story v1.86.0 [+2 Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
       
      • 18 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