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

    • Apple Grapple: Survivor v1195 +50++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Apple Grapple: Survivor By Loop Games Oyun Teknolojileri Anonim Sirketi
      Bundle ID: com.loop.apple.grapple
      iTunes Store Link: https://apps.apple.com/us/app/apple-grapple-survivor/id6478910885?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Battle Pass Purchased
      - Debug Menu -> Head into Settings and toggle the Discord button.

      -> Set Player Health
      -> Set Player Speed
      -> Set Player Weapon
      -> Change Level
      -> Add/Remove Currencies
      -> Increase Battle Pass Kills
      -> Earn All Equipment
      -> Skip Tutorial

      + More!


      Jailbreak required hack(s): [Mod Menu Hack] Apple Grapple: Survivor v679 +50++ Cheats [ Debug Menu ] - 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
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Doctor Who: Lost In Time v2.6.5 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Doctor Who: Lost In Time By Eastside Games
      Bundle ID: com.eastsidegames.doctorwho
      iTunes Store Link: https://apps.apple.com/us/app/doctor-who-lost-in-time/id1615158216
       

      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): https://iosgods.com/topic/169486-doctor-who-lost-in-time-all-versions-1-cheat-unlimited-currencies/
      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
      • 55 replies
    • Chrome Valley Customs v30.1.0 +1 Jailed Cheat [ Freeze Moves ]
      Modded/Hacked App: Chrome Valley Customs By Space Ape Ltd
      Bundle ID: com.spaceapegames.carsuperstar
      iTunes Store Link: https://apps.apple.com/us/app/chrome-valley-customs/id6444042518
       

      Hack Features:
      - Freeze Moves


      Jailbreak required hack(s): https://iosgods.com/topic/173179-chrome-valley-customs-v400-1-cheat-unlimited-moves/
      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
      • 114 replies
    • Mini Kitchen Chef v7.3.15 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mini Kitchen Chef By JOHANNES DIMITRIS TSOUCHLOS
      Bundle ID: com.tsepigames.minikitchen
      iTunes Store Link: https://apps.apple.com/us/app/mini-kitchen-chef/id6738204646?uo=4

       


      Hack Features

      - Unlimited Cash
      - Unlimited Plates
      - Unlimited Stars
      - No Burning


      Jailbreak required iOS hacks: [Mod Menu Hack] Mini Kitchen Chef v3.0 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Like
      • 6 replies
    • Crunchyroll: Two Strikes v1.0.4 +2 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Two Strikes By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.twostrikes
      App Store Link: https://apps.apple.com/us/app/crunchyroll-two-strikes/id6742846993?uo=4

       


      🤩 Hack Features

      - God Mode *Online Untested*
      -- Full Game Unlocked
        • Agree
        • Haha
        • Winner
        • Like
      • 8 replies
    • Bejeweled Stars v4.0.2 +2++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: Bejeweled Stars By Electronic Arts
      Bundle ID: com.ea.ios.bejeweledskies
      iTunes Store Link: https://apps.apple.com/us/app/bejeweled-stars/id974135847
       

      Hack Features:
      - Unlimited Everything -> Use coins or powerups to gain an unlimited amount.


      Jailbreak required hack(s): [Mod Menu Hack] Bejeweled Stars v3.02.0 +1++ Cheats [ Unlimited Everything ] - 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
      • 16 replies
    • Parking Master Multiplayer 2 v2.9.5 +4 Jailed Cheats [ No Damage ]
      Modded/Hacked App: Parking Master Multiplayer 2 By SPEKTRA GAMES OYUN VE YAZILIM ANONIM SIRKETI
      Bundle ID: com.SpektraGames.ParkingMasterMultiplayer2
      iTunes Store Link: https://apps.apple.com/us/app/parking-master-multiplayer-2/id1604738089?uo=4

       
       

      🤩 Hack Features

      - Freeze Fuel
      - No Damage
      - No Traffic
      -- No Forced Ads
        • Informative
        • Agree
        • Like
      • 10 replies
    • Episode My First Kiss BL Story v2.0.5 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Episode My First Kiss BL Story By Faifly, LLC
      Bundle ID: com.faifly.my.first.kiss.bl.yaoi.choices
      iTunes Store Link: https://apps.apple.com/us/app/episode-my-first-kiss-bl-story/id1644503857?uo=4

       
       

      🤩 Hack Features

      - Unlimited Feathers -> Spend some.
      - Unlimited Gems -> Buy a feather.


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Episode My First Kiss BL Story v1.5.20 +2 Cheats [ Unlimited Currencies ] - Free Jailbreak Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Thanks
        • Winner
        • Like
      • 15 replies
    • Couple Breaker: Romance Otome v1.0.8 +1 Jailed Cheat [ Free Premium Choices ]
      Modded/Hacked App: Couple Breaker: Romance Otome By Storytaco.inc
      Bundle ID: com.storytaco.p37client
      App Store Link: https://apps.apple.com/us/app/couple-breaker-romance-otome/id6502985582?uo=4

       


      🤩 Hack Features

      - Free Premium Choices
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 7 replies
    • Mystery Matters v3.5.0 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mystery Matters By Playrix
      Bundle ID: com.playrix.mystery-matters
      iTunes Store Link: https://apps.apple.com/us/app/mystery-matters/id6450447751
       

      Hack Features:
      - Freeze Coins
      - Freeze Stars
      - Freeze Lives
      - Freeze Moves

      VIP
      Note - These features will get you banned from teams/clans.
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Stars -> Earn some.
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 62 replies
    • GEARZBOUND v1.90.61 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: 기어즈바운드 By WHITEBEARDGAMES
      Bundle ID: com.WhiteBeardGames.GEARZBOUND
      App Store Link: https://apps.apple.com/us/app/%EA%B8%B0%EC%96%B4%EC%A6%88%EB%B0%94%EC%9A%B4%EB%93%9C/id1560784581?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 6 replies
    • Boxing Superstar v1.0.24 +1 Jailed Cheat [ Unlimited Cash ]
      Modded/Hacked App: Boxing Superstar By Scott Baillie
      Bundle ID: com.lazyboydevelopments.boxingsuperstar
      App Store Link: https://apps.apple.com/us/app/boxing-superstar/id1550517987?uo=4

       

      🤩 Hack Features

      - Unlimited Cash
      • 0 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