Jump to content

Is my code correct in Tweak.xm?


Go to solution Solved by Astronaut,

15 posts in this topic

Recommended Posts

Posted

Is my code correct? Because when I install the deb file, it doesn't do what it's supposed to do which is remove the ads.

 

This is the code:

 

My Tweak.xm:

%hook ReachabilityGLAds

-(BOOL) startNotifier {

return FALSE;

}

%end

 

%hook GLAdBanner

-(id) init {

return NULL;

}

%end

 

%hook GLOfflineAdFullScreenManager

-(id) getAllEmbeddedFullScreenAds {

return NULL;

}

%end

Posted (edited)

Have you tried using flex? If yes does it work with flex?

yes I used flex to create this code but it worked with flex and not with the deb I created. Updated by Fuerza
Posted

yes I used to flex to create this code but it worked with flex and not with the deb I created.

Show me your makefile 'file

Posted

Show me your makefile 'file

Makefile:

 

export TARGET = iphone

 

include theos/makefiles/common.mk

 

TWEAK_NAME = NoAdsN3

NoAdsN3_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

Posted (edited)

Put this on top of your makefile file

 

ARCHS = armv7 arm64

 

(With the space)

Should look like this

 

Makefile:

 

ARCHS = armv7 arm64

 

export TARGET = iphone

 

include theos/makefiles/common.mk

 

TWEAK_NAME = NoAdsN3

NoAdsN3_FILES = Tweak.xm

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

Edit 1:Delete your current files that you installed, uninstall the .deb that you installed and re-compile after doing this

Updated by Crypto
Posted

Put this on top of your makefile file

ARCHS = armv7 arm64

(With the space)Should look like this

Makefile:

ARCHS = armv7 arm64

export TARGET = iphone

include theos/makefiles/common.mk

TWEAK_NAME = NoAdsN3

NoAdsN3_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::

install.exec "killall -9 SpringBoard" Delete your current files that you installed and re-compile after doing this

On top of export TARGET right?

Posted

Yeah just copy what I wrote

It won't compile now.

This is what I get:

 

iPhone-7:/var/mobile/noadsn3 root# make package

/var/mobile/noadsn3/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

/var/mobile/noadsn3/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

Makefile:13: *** missing separator. Stop

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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