Skip to content
Guest Big Announcement

error in tweak.xm

Featured Replies

am close like never before :) lol

i see it says what is error, but i dont know what i need to do... :)

also what need to do with thet obj/debug/arm7 error???

5NOx7aw.png

here is picture and here is tweak xm...

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>

/* To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-tweakpatcherfunction-tweakpatcher-withwithout-psedittextcellpsslidercell-generator-online/ */
/* To Easily Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject-generator-online-tweakxm-preferencesplist/ */

#define PLIST_PATH @"/var/mobile/Library/Preferences/xxx.plist"

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

%ctor {
    if(GetPrefBool(@"key1")) {
        writeData(0x1527D4 0xA0E3);
    } else {
}


    if(GetPrefBool(@"key2")) {
        writeData(0x15370C, 0x40E2);
    } else {
}
}

Solved by Joka

  • Solution

You forgot to add a comma for "key1".

writeData(0x1527D4, 0xA0E3);

  • Author
6 minutes ago, Joka said:

You forgot to add a comma for "key1".

writeData(0x1527D4, 0xA0E3);

 

Just now, DiDA said:

Pay attention Goran! These things matter!

thanks guys!! i see that everything is important here :)

what about that theos/obj/debug/armv7 error???

1 minute ago, DiDA said:

Pay attention Goran! These things matter!

Lmao.

Is this where we're supposed to laugh?

Just now, Goran said:

 

thanks guys!! i see that everything is important here :)

what about that theos/obj/debug/armv7 error???

Fix the comma first then compile and see what errors you get.

  • Author
Just now, Joka said:

Fix the comma first then compile and see what errors you get.

 

Just now, DiDA said:

That's part of that

 

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.