Skip to content
Guest Big Announcement

Dylibs tweaks problem, Theos

Featured Replies

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

Just now, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

  • Replies 43
  • Views 4.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Batch
    Batch

    Yes use standard theos and silenPwn and libspecter. Just add libspecter .a into makefile and then import the header file.

  • Author
17 minutes ago, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

#import <UIKit/UIKit.h>
#import <mach-o/dyld.h>
#import <substrate.h>
#import <pthread.h>

uintptr_t get_FrameworkBaseAddress() {
    uint32_t count = _dyld_image_count();
    for (uint32_t i = 0; i < count; i++) {
        const char *name = _dyld_get_image_name(i);
        if (name && strstr(name, "UnityFramework")) {
            return (uintptr_t)_dyld_get_image_header(i);
        }
    }
    return 0;
}

void writeLocalLog(NSString *text) {
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *logFilePath = [documentsDirectory stringByAppendingPathComponent:@"tweak_debug.txt"];
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *timestamp = [formatter stringFromDate:[NSDate date]];
    NSString *finalLine = [NSString stringWithFormat:@"[%@] %@\n", timestamp, text];
    
    NSFileHandle *handle = [NSFileHandle fileHandleForWritingAtPath:logFilePath];
    if (!handle) {
        [[finalLine dataUsingEncoding:NSUTF8StringEncoding] writeToFile:logFilePath atomically:YES];
    } else {
        [handle seekToEndOfFile];
        [handle writeData:[finalLine dataUsingEncoding:NSUTF8StringEncoding]];
        [handle closeFile];
    }
}

bool (*old_CanBuy)(void *instance, void *requireMoney, void *methodInfo);
bool new_CanBuy(void *instance, void *requireMoney, void *methodInfo) {
    writeLocalLog(@"[MoneyManager] CanBuy intercepted! Forcing true.");
    return true; 
}

void (*old_RemoveMoney)(void *instance, void *value, void *methodInfo);
void new_RemoveMoney(void *instance, void *value, void *methodInfo) {
    writeLocalLog(@"[MoneyManager] RemoveMoney intercepted! Protecting wallet balance.");
}

void *hook_worker_thread(void *args) {
    @autoreleasepool {
        writeLocalLog(@"MoneyManager Wallet Thread spawned safely.");
        
        uintptr_t baseAddress = get_FrameworkBaseAddress();
        while (baseAddress == 0) {
            usleep(200000); 
            baseAddress = get_FrameworkBaseAddress();
        }

        sleep(4); 

        NSString *addressLog = [NSString stringWithFormat:@"[Debug] UnityFramework Base: 0x%lx | Target CanBuy: 0x%lx", 
                                baseAddress, (baseAddress + 0xDA4D70)];
        writeLocalLog(addressLog);

        MSHookFunction((void *)(baseAddress + 0xDA4D70), (void *)&new_CanBuy, (void **)&old_CanBuy);
        MSHookFunction((void *)(baseAddress + 0xDA4E44), (void *)&new_RemoveMoney, (void **)&old_RemoveMoney);

        writeLocalLog(@"Wallet bypass successfully! :>");
    }
    return NULL;
}

%ctor {
    pthread_t pt;
    pthread_create(&pt, NULL, hook_worker_thread, NULL);
}

this is my code, this works perfect on playcover, but in iphone, it shows the log i made  "Wallet bypass successfully! :>" but it doesnt even work in-game :<
please tell me what's wrong with it (if there is)

Updated by A1XEN

  • Author
38 minutes ago, A1XEN said:

Hi, 

I was busy making tweaks using theos but im facing a problem where my tweaks (.dylibs) works perfectly fine on Playcover but does not when in my iphone, i followed every tutorials, and still no 

please help, i dont known if the iosGod .dylibs have some sort of bypass code that makes it works and i dont have it

@Rook @Laxus @Puddin

i actually tried revising the code, i used the rule:

True iPhone Offset=Disassembler Address−Disassembler Base Address (usually 0x100000000)−Segment Offset (usually 0x4000)

and still nothing 

  • Author
19 minutes ago, Rook said:

Are you using a menu or something?

On Jailbreak there's rootful, rootless, & RootHide now so you need to compile appropriately.

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

1 minute ago, A1XEN said:

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

Ah, but patching on jailed we do something unique to achieve that. Though I think Batch released a menu which does something similar.

  • Author
5 minutes ago, A1XEN said:

im not, im on jailed device, im actually going to try to make a menu if i could tomorrow (im going to sleep) because my code might be hooking to early you see what i was tryna do is make the patches from live offset patcher to run automatically without the live offset patcher only using .dylibs so its supposed to apply the patches automatically when the game run

you see when i apply the patches manually using the live offset patcher, it works, only when i turned on the UnityFramework from iGdebugger 

3 minutes ago, Rook said:

Ah, but patching on jailed we do something unique to achieve that. Though I think Batch released a menu which does something similar.

which menu? so you mean every jailed cheats here uses that menu released by “Batch” and who/what is Batch? :?

Updated by A1XEN

  • Author
8 minutes ago, A1XEN said:

you see when i apply the patches manually using the live offset patcher, it works, only when i turned on the UnityFramework from iGdebugger 

which menu? so you mean every jailed cheats here uses that menu released by “Batch” and who/what is Batch? :?

i found it but the github link is broken, can you teach the trick you do to apply patches and tweaks for jailed devices, and also if there is a official menu/template for theos that helps apply tweaks/patches on jailed devices thanks 🙏 @Rook

  • Author
5 minutes ago, Batch said:

Patching on non jailbreak can't be achieved at runtime

Also MSHookFunction will cause crash on jailed device too

It's better if you use breakpoints, my memory library supports it (https://github.com/Batchhh/libspecter) just ask AI to implement into your project

so, i had to make a menu right? that only runs when the game is fully loaded? would that work? and yeah i figured out why live offset patcher only works when i turned on the breakpoints

1 minute ago, A1XEN said:

so, i had to make a menu right? that only runs when the game is fully loaded? would that work? and yeah i figured out why live offset patcher only works when i turned on the breakpoints

If you need a menu here https://github.com/Batchhh/SilentPwn and yes it will work on fully loaded, if you are not with programming just use AI

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.