Skip to content
Guest Big Announcement

Function must be greater than 0. stop

Featured Replies

  • Replies 20
  • Views 3.7k
  • Created
  • Last Reply

Top Posters In This Topic

still getting the same error. 

 

this is starting to get frustrating :(

still getting the same error. 

 

this is starting to get frustrating :(

Must be the UnityAppController.

 

Remove that then try again.

  • Author

Must be the UnityAppController.

 

Remove that then try again.

removed but didn't work

Could you show your Makefile?

ARCHS = armv7 arm64

TARGET = iphone:clang:latest:latest

#CFLAGS = -fobjc-arc

#THEOS_PACKAGE_DIR_NAME = debs

 

include theos/makefiles/common.mk

 

TWEAK_NAME = raftcheat

raftcheat_FILES = Tweak.xm

raftcheat_FRAMEWORKS = UIKit

raftcheat_LDFLAGS += -Wl,-segalign,4000

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

        install.exec "killall -9 SpringBoard"

SUBPROJECTS += raftcheat

 

include $(THEOS_MAKE_PATH)/aggregate.mk

  • Author

What does your Tweak.xm look like now?

only got this in the tweak 

%hook SKPaymentTransaction
 
-(void) transactionState:(long long)arg1 {
arg1 = 1;
%orig;
}
%end

 

only got this in the tweak 

%hook SKPaymentTransaction
 
-(void) transactionState:(long long)arg1 {
arg1 = 1;
%orig;
}
%end

Add everything you had in there before and show me the error you get.

  • Author

Add everything you had in there before and show me the error you get.

this is the error im getting http://imgur.com/a/lFrO6

 

and this is my tweak with everything i had before 

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

%Hook SKPaymentTransaction
-(long long) transactionState fp8 {
fp8 = 1;
%orig(fp8);
}
%end

%Hook UnityAppController
-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test Title"
message:@"Test Message" delegate:nil cancelButtonTitle:@"Close Test Pop-Up"
otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}

%end

 

this is the error im getting http://imgur.com/a/lFrO6

 

and this is my tweak with everything i had before 

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

%Hook SKPaymentTransaction
-(long long) transactionState fp8 {
fp8 = 1;
%orig(fp8);
}
%end

%Hook UnityAppController
-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test Title"
message:@"Test Message" delegate:nil cancelButtonTitle:@"Close Test Pop-Up"
otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}

%end

Make %hook lowercased

  • Author

Make %hook lowercased

its sort of working, im now getting fatal error: Preferences/Preferences.h file not found 

its sort of working, im now getting fatal error: Preferences/Preferences.h file not found 

Search that on the forum. It just means you're missing headers.

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.