Jump to content

buildng a theos tweak ios 12.1.2


syto203

6 posts in this topic

Recommended Posts

Posted

the next step after this getting solved

is to create the tweak. i used the template v3.1 available from

however, i'm getting the following error when runing "make package install'

iPhone:~/bloodyharry root# make package install                                                                                                         
> Making all for tweak BloodyHarry…
==> Preprocessing Tweak.xm…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (arm64)…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak BloodyHarry (armv7)…
ld: malformed file
/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:2:42: error: unknown bit value
archs:           [ armv7, armv7s, arm64, arm64e, i386, x86_64 ]
                                         ^~~~~~
 file '/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/armv7/BloodyHarry.dylib] Error 1
rm /var/root/bloodyharry/.theos/obj/armv7/Tweak.xm.mm
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/armv7/BloodyHarry.dylib] Error 2
make[2]: *** Waiting for unfinished jobs....
==> Linking tweak BloodyHarry (arm64)…
ld: malformed file
/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:2:42: error: unknown bit value
archs:           [ armv7, armv7s, arm64, arm64e, i386, x86_64 ]
                                         ^~~~~~
 file '/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/arm64/BloodyHarry.dylib] Error 1
rm /var/root/bloodyharry/.theos/obj/arm64/Tweak.xm.mm
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/arm64/BloodyHarry.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: BloodyHarry.all.tweak.variables] Error 2

 

Posted

Copying the CydiaSubstrate binary to $THEOS/vendor/lib/CydiaSubstrate.framework solved the CydiaSubstrate.tbd (source)

this remains:

> Making all for tweak bloodyharry…
==> Preprocessing Tweak.xm…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (arm64)…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak bloodyharry (armv7)…
ld: warning: text-based stub file /var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd and library file /var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate are out of sync. Falling back to library file for linking.
==> Generating debug symbols for bloodyharry…
==> Stripping bloodyharry (armv7)…
==> Linking tweak bloodyharry (arm64)…
ld: warning: text-based stub file /var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd and library file /var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate are out of sync. Falling back to library file for linking.
==> Generating debug symbols for bloodyharry…
==> Stripping bloodyharry (arm64)…
==> Merging tweak bloodyharry…
==> Signing bloodyharry…
> Making all in bloodyharrySettings…
> Making all for bundle bloodyharry…
==> Copying resource directories into the bundle wrapper…
==> Compiling bloodyharry.mm (arm64)…
==> Compiling bloodyharry.mm (armv7)…
==> Linking bundle bloodyharry (arm64)…
ld: framework not found Preferences
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/root/bloodyharry/.theos/obj/arm64/bloodyharry.bundle/bloodyharry] Error 1
make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/root/bloodyharry/.theos/obj/arm64/bloodyharry.bundle/bloodyharry] Error 2
make[3]: *** Waiting for unfinished jobs....
==> Linking bundle bloodyharry (armv7)…
ld: framework not found Preferences
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/root/bloodyharry/.theos/obj/armv7/bloodyharry.bundle/bloodyharry] Error 1
make[3]: *** [/var/theos/makefiles/instance/bundle.mk:37: /var/root/bloodyharry/.theos/obj/armv7/bloodyharry.bundle/bloodyharry] 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: bloodyharry.all.bundle.variables] Error 2
make: *** [/var/theos/makefiles/master/aggregate.mk:12: internal-all] Error 2

 

Posted

i tried 9.2,9.3,10.2 and 10.3 and none of them had the preferences framework. (edit: i tried the sdks from $theosinstaller sdk-version)

i did find this repo with sdks for 9.3-12.2 and that fixed it.

i used the 10.3 SDK

https://github.com/DavidSkrundz/sdks

on another topic the patch didn't work even thought it's exactly what was in the tutorial.

here is my tweak.xm only the first 2 keys are related to this game with the first 1 being the NOPing of the STR as referenced from here

On 8/22/2018 at 1:30 PM, HackedByTed2 said:

Compiling a hack with theos

Open your tweak.xm from your theos project & find this:


    if(GetPrefBool(@"key1")) {
      vm_writeData(0x123456, 0x123456); //The first value should be the offset & the second value the hackedHex
    }

If I wanted to change it to NOP I would change it to this:


    if(GetPrefBool(@"key1")) {
      vm_writeData(0x10092DEE8, 0x1F2003D5); // 
    }

 

How do I know it would be "0x1F2003D5"?

Well iOSGods has this awesome website: http://armconverter.com/

I typed "NOP" & in the  " ARM64 HEX" box I got the Hex of it.

You can convert any valid arm instruction here, so if you wanted to hack the LDR, you could have written this in the box:

LDR W8, [X23] & it would give you this value: 0xE80240B9

 

 

@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.bloodyharry.syto203.plist"

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


// Add your MS/Flex/MSHook Code here. Examples can be found on iOSGods.


%ctor {

	// Code Injection example
    if(GetPrefBool(@"key1")) {
      vm_writeData(0x10092DEE8,0x1F2003D5); // 
    }

    if(GetPrefBool(@"key2")) {
      vm_writeData(0x10092DED8,0x48018052); // 
    }

    if(GetPrefBool(@"key3")) {
      vm_writeData(0x1806B8, 0x381C); // ARMv7Offsets
      vm_writeData(0x2FA51C, 0x381C); // 
      vm_writeData(0x1001D98E0, 0x1F2003D5); // ARM64Offsets
      vm_writeData(0x10038DD0C, 0x1F2003D5); // 
    }

}



// Automatic Popup Code
void setup() {
    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Made for iOSGods.com" message:@"Bloody Harry Cheats by syto203 for iOSGods.com!\n\nVisit the hack's official topic on iOSGods for more information and updates!" preferredStyle:UIAlertControllerStyleAlert];


    UIAlertAction *iosgods = [UIAlertAction actionWithTitle:@"Visit iOSGods.com!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
        UIApplication *application = [UIApplication sharedApplication];
        NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"];
        [application openURL:URL options:@{} completionHandler:^(BOOL success) {
            if (success) {
                //NSLog(@"Opened url");
            }
        }];
        
    }];
    
    UIAlertAction *clubs = [UIAlertAction actionWithTitle:@"Visit the Clubs!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
        UIApplication *application = [UIApplication sharedApplication];
        NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/clubs/"];
        [application openURL:URL options:@{} completionHandler:^(BOOL success) {
            if (success) {
                //NSLog(@"Opened url");
            }
        }];
    }];
    
    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you!" style:UIAlertActionStyleCancel handler:nil];
    
    [igcredits addAction:iosgods];
    [igcredits addAction:clubs];
    [igcredits addAction:thankyou];


    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];
}

void unsubscribeToLaunchEvent(void);

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,
                               CFStringRef name, const void *object, CFDictionaryRef info) {
    setup();
    unsubscribeToLaunchEvent();
}

const char *authObserver = "authObserver";

void subscribeToLaunchEvent() {
    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,
                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,
                                    NULL, CFNotificationSuspensionBehaviorDrop);
}

void unsubscribeToLaunchEvent() {
    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,
                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);
}

__attribute__((constructor)) static void initialize() {
    subscribeToLaunchEvent();
}

 

 

Posted
On 5/23/2019 at 3:53 AM, syto203 said:

the next step after this getting solved

is to create the tweak. i used the template v3.1 available from

however, i'm getting the following error when runing "make package install'


iPhone:~/bloodyharry root# make package install                                                                                                         
> Making all for tweak BloodyHarry…
==> Preprocessing Tweak.xm…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (arm64)…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak BloodyHarry (armv7)…
ld: malformed file
/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:2:42: error: unknown bit value
archs:           [ armv7, armv7s, arm64, arm64e, i386, x86_64 ]
                                         ^~~~~~
 file '/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/armv7/BloodyHarry.dylib] Error 1
rm /var/root/bloodyharry/.theos/obj/armv7/Tweak.xm.mm
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/armv7/BloodyHarry.dylib] Error 2
make[2]: *** Waiting for unfinished jobs....
==> Linking tweak BloodyHarry (arm64)…
ld: malformed file
/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:2:42: error: unknown bit value
archs:           [ armv7, armv7s, arm64, arm64e, i386, x86_64 ]
                                         ^~~~~~
 file '/var/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/arm64/BloodyHarry.dylib] Error 1
rm /var/root/bloodyharry/.theos/obj/arm64/Tweak.xm.mm
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/bloodyharry/.theos/obj/arm64/BloodyHarry.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: BloodyHarry.all.tweak.variables] Error 2

 

Did you ever find a fix for this its happening with me too

Posted

if you are building on an iDevice choose only one sdk from ios 11 if you are using an A11 device.(iphone x and iphone 8) and in the make file set the used archs to "ARCHS = arm64"

@Yueky

also refer to this

the fix was the last post before your question.

Archived

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

  • Our picks

    • Conquest Girls : AFK Idle RPG Cheats v2.11.94 +4
      Modded/Hacked App: Conquest Girls : AFK Idle RPG By Toast.Co.,Ltd
      Bundle ID: com.greenspring.conquestgirls
      iTunes Store Link: https://apps.apple.com/us/app/conquest-girls-afk-idle-rpg/id6670455686?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

      - Multiply Attack
      - Multiply Attack Speed
      - Multiply Attack Range
      - Freeze Currencies (Some arena / section may not support this)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/189660-conquest-girls-afk-idle-rpg-v21164-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/186829-conquest-girls-afk-idle-rpg-cheats-v21167-4/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 52 replies
    • Pocket Champs PVP Racing Games Cheats v5.9.12 +2
      Modded/Hacked App: Pocket Champs: 3D Racing Games By MADBOX
      Bundle ID: com.pocketchamps.game
      iTunes Store Link: https://apps.apple.com/us/app/pocket-champs-3d-racing-games/id1542776143?uo=4


      Hack Features:
      - Free Store (not Free iAP) -- Negative value will reset to 0 on launch
      - Infinite Coins & Gems

      iOS Hack Download Link: https://iosgods.com/topic/165006-pocket-champs-3d-racing-games-cheats-v318-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 199 replies
    • The Battle Cats Cheats v14.5.1 +2
      Modded/Hacked App: The Battle Cats by ponos corporation
      Bundle ID: jp.co.ponos.battlecatsen
      iTunes Store Link: https://apps.apple.com/us/app/the-battle-cats/id850057092?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - OHK Linked

      NOTE: Please don't ask me for currencies hack since this is the best I can do


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/124447-arm64-the-battle-cats-v940-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/124448-arm64-the-battle-cats-cheats-v950-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 918 replies
    • Archero Cheats v7.1.3 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 15,881 replies
    • Bullet Force v1.106.4 +10 Cheats
      Modded/Hacked App: Bullet Force By Blayze Games, L.L.C.
      Bundle ID: com.blayzegames.iosfps
      iTunes Store Link: https://itunes.apple.com/us/app/bullet-force/id1009134067


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Ammo + Increased Fire Rate - Both are linked. I can't unlink them, sorry.
      - Shoot Through Walls - Doesn't work for all walls.
      - ESP - Shows enemies nametags through walls.
      - Radar Hack - Shows all enemies on the radar.
      - Unlock All Perks
      - Instant Reload
      - Anti-Flash - Flashbangs have no effect.
      - Unlimited Throwables - Will not decrease. Works online, kinda.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,771 replies
    • MARVEL Future Fight Cheats v11.2.0 17++
      Modded/Hacked App: MARVEL Future Fight By Netmarble Games Corp.
      Bundle ID: com.netmarble.mheros
      iTunes Link: https://itunes.apple.com/us/app/marvel-future-fight/id955705796?mt=8&uo=4&at=1010lce4



      Hack Features
      - God Mode / Enemy Does 1 Damage / Never Die. May be a bit buggy.
      - High Damage / Damage Multiplier / One Hit Kill. Kill enemies with 1 hit.
      - No Skill Cooldown Time. Instant skill use without having to wait for reuse.
      - No Special Skill Cooldown Time. Instant special skill use without having to wait 120+ seconds to reuse it.
      - No Cooldown Time To Swap Heroes. Swap heroes instantly anytime.
      - Assistant Will Never Leave Once Called. Assistant will be available during the whole map once called.
      - Heroes Level 60. Level 60 heroes have higher HP and Damage output. The hack makes them lvl 60 in-game. However, when turned off, the heroes will be the level they previously were.
      - Infinite Buff Time. When swapping a hero, you gain a shield around him/her. That shield will stay with you throughout the rest of the game thus making you invincible.
      - Enemies Don't Move & Attack! An (better) alternative to God Mode. Enemies do not move or attack you therefore you cannot die.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,950 replies
    • Fairyland - Merge & Match v1.5.3 [ +4 Cheats ] Auto Win
      Modded/Hacked App: Fairyland - Merge & Match By 程程 姚
      Bundle ID: com.mergematch.fairyland
      App Store Link: https://apps.apple.com/us/app/fairyland-merge-match/id6740663230?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Gems
      - Coins
      - Moves 99
        • Like
      • 2 replies
    • Fairyland - Merge & Match v1.5.3 [ +4 Jailed ] Auto Win
      Modded/Hacked App: Fairyland - Merge & Match By 程程 姚
      Bundle ID: com.mergematch.fairyland
      App Store Link: https://apps.apple.com/us/app/fairyland-merge-match/id6740663230?uo=4


      🤩 Hack Features

      - Auto Win
      - Gems
      - Coins
      - Moves 99
        • Like
      • 2 replies
    • Modern Strike Online: War FPS Cheats v1.77.6 +10
      Modded/Hacked App: Modern Strike Online: War FPS By AZUR INTERACTIVE GAMES LIMITED
      Bundle ID: com.gamedevltd.modernstrikeonline
      iTunes Store Link: https://apps.apple.com/us/app/modern-strike-online-war-fps/id1197441484?uo=4


      Hack Features:
      - Radar Hack
      - Increase FireRate
      - Unlimited Ammo
      - No Spread
      - Night Vision Enabled
      - Instant Kill
      - God Mode
      - No FlashBang
      - Super Speed
      - No MedKit CoolDown

      Note:
      Not Responsible For Any Bans


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/186634-modern-strike-online-war-fps-v1687-jailed-cheats-10/


      iOS Hack Download Link: https://iosgods.com/topic/186633-modern-strike-online-war-fps-cheats-v1693-10/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 94 replies
    • The Walking Dead: All-Stars Cheats v1.41.3 +4
      Modded/Hacked App: The Walking Dead: All-Stars By Com2uS Holdings Corporation
      Bundle ID: com.gamevil.gvtwd.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/the-walking-dead-all-stars/id1570395238?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - Auto Win
       

      iOS Hack Download Link: https://iosgods.com/topic/186370-the-walking-dead-all-stars-cheats-v1292-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 117 replies
    • Matchington Mansion Cheats v1.186.0 +5
      Modded/Hacked App: Matchington Mansion By Magic Tavern, Inc.
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://apps.apple.com/us/app/matchington-mansion/id1216575026?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

      - Infinite Moves
      - Infinite Lives
      - Infinite Booster
      - Infinite Coin (Spend some/ Get some)
      - Infinite Stars (Complete task without needing Stars)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/75130-matchington-mansion-v11750-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/75127-matchington-mansion-cheats-v11770-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 807 replies
    • Puzzle & Dragons (English) v22.4.0 Jailed Cheats +2
      Modded/Hacked App: Puzzle & Dragons (English) By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135066-puzzle-dragons-english-v1931-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 318 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