Jump to content

Error while making tweak


Go to solution Solved by Archangel04,

10 posts in this topic

Recommended Posts

Posted

HEfdf9M.jpg

 

My Tweak.xm : #include <substrate.h>

 

%hook BetternetUser

-(void) setIsPremium:(bool)arg1 {

arg1 = TRUE;

return %orig;

}

%end

 

%hook BetternetUser

-(bool) isPremium {

return TRUE;

}

%end

 

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg {

UIAlertView *credits = [[uIAlertView alloc] initWithTitle:@"Welcome"

message:@"Hacked by KFCzZz for iOSGods.com"

delegate:self

cancelButtonTitle:@"Close"

otherButtonTitles:@"Visit Us", nil];

[credits show];

[credits release];

return %orig;

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

if([button isEqualToString:@"Visit Us"])

{

[[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/]];

}

}

%end

Posted

Show me makefile and use

[code] code here[/code]
k

ARCHS = armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = Betternet
Betternet_FILES = Tweak.xm
Betternet_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk
Posted

Your gnu cc compilers are old. The default one in Cydia is not for current use

And also i was wrong about tweak.mk

Use this makefile in theos.

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include theos/makefiles/common.mk

TWEAK_NAME = Betterner
BulletForce_FILES = Tweak.xm
BulletForce_FRAMEWORKS = UIKit
BulletForce_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk


SUBPROJECTS += Betternet
include $(THEOS_MAKE_PATH)/aggregate.mk

Side note: Are you using DiDA's template? it builds everything except your tweak.xm and .plist without any further need to do anything

Posted

I just setup Theos last week

Your gnu cc compilers are old. The default one in Cydia is not for current useAnd also i was wrong about tweak.mk Use this makefile in theos.

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include theos/makefiles/common.mk

TWEAK_NAME = Betterner
BulletForce_FILES = Tweak.xm
BulletForce_FRAMEWORKS = UIKit
BulletForce_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk


SUBPROJECTS += Betternet
include $(THEOS_MAKE_PATH)/aggregate.mk
Side note: Are you using DiDA's template? it builds everything except your tweak.xm and .plist without any further need to do anything
nope
Posted

Use it. AND JUST BECAUSE you set it up last week doesn't make it the best version of theos

36OlDkc.jpg

Use it. AND JUST BECAUSE you set it up last week doesn't make it the best version of theos

and you gave me the make file of bullet force but I fixed it up

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