Skip to content
Guest Big Announcement

Theos - What’s wrong with my tweak.xm?

Featured Replies

What mistake did I make?

#import <substrate.h>
#import <Foundation/Foundation.h>

%hook OTDeviceSafetyUseCase

-(BOOL) isDeviceSafeToUse {
return TRUE;
}
%end

LwpLTFG.jpg

It’s been a while since I’ve created a tweak.

Updated by Fadexz
Marked as solved.

Solved by Fadexz

  • Author
26 minutes ago, Ted2 said:

Theos things you wrote Return with a capital letter. remove that return line & type it again (no copy pasting)

 

return TRUE;

I did type it in lowercase, it just shows like that for some reason in theos.

I also tried rewriting it but that seemed to not fix it.

  • Author

It didn't do anything.

#import <substrate.h>
#import <Foundation/Foundation.h>

string Return = "return";

%hook OTDeviceSafetyUseCase

-(BOOL) isDeviceSafeToUse {
Return TRUE;
}
%end

Here's my makefile if there's anything that needs to be added. I removed ARCHS ...

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = OpalDisableJailbreakCheck
OpalDisableJailbreakCheck_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Updated by Fadexz

  • Author
12 hours ago, Archangel04 said:

does it work in flex?

Yes, i'm just trying to turn it into a tweak.

I was thinking about creating a new project but re-writing it.

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.