Skip to content
Guest Big Announcement

Function must be greater than 0. stop

Featured Replies

Hello, so when i'm trying to install my tweak i'm getting an error.

 

so when i type "make package install" I'm getting /var/mobile/raft/theos/makefiles/targets/Darwin-arm64/iPhone.mk:21: *** first argument to 'word' function must be greater than 0. stop.

 

i've changed both Darwin files in targets and platform to have at the end 64,

 

I'm on iPhone 5s running iOS 10.2

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

Top Posters In This Topic

Hello, so when i'm trying to install my tweak i'm getting an error.

 

so when i type "make package install" I'm getting /var/mobile/raft/theos/makefiles/targets/Darwin-arm64/iPhone.mk:21: *** first argument to 'word' function must be greater than 0. stop.

 

i've changed both Darwin files in targets and platform to have at the end 64,

 

I'm on iPhone 5s running iOS 10.2

Can u show your tweak.xm

  • Author

Can u show your tweak.xm

%hook SKPaymentTransaction

-(void)_setTransactionState:(long long) fp8 {

fp8 = 1;

%orig(fp8);

}

%end

 

%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

Hello, so when i'm trying to install my tweak i'm getting an error.

 

so when i type "make package install" I'm getting /var/mobile/raft/theos/makefiles/targets/Darwin-arm64/iPhone.mk:21: *** first argument to 'word' function must be greater than 0. stop.

 

i've changed both Darwin files in targets and platform to have at the end 64,

 

I'm on iPhone 5s running iOS 10.2

you need to Go to /var/theos/makefiles/targets/ and rename the "Darwin-arm" folder to "Darwin-arm64"

 

Then once you have done that goto /var/theos/makefiles/platform/ and rename "Darwin-arm.mk" to "Darwin-arm64.mk"

  • Author

you need to Go to /var/theos/makefiles/targets/ and rename the "Darwin-arm" folder to "Darwin-arm64"

 

Then once you have done that goto /var/theos/makefiles/platform/ and rename "Darwin-arm.mk" to "Darwin-arm64.mk"

already done that

 

%hook SKPaymentTransaction

-(void)_setTransactionState:(long long) fp8 {

fp8 = 1;

%orig(fp8);

}

%end

 

%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

 

Remove the:

 

%hook SKPaymentTransaction

-(void)_setTransactionState:(long long) fp8 {

fp8 = 1;

%orig(fp8);

}

%end

 

and just leave the transactionState.

already done that

hmmm, goto your Theos folder and check see if your sdk folder is empty. This happened to me so I downloaded the 9.3sdk and it's all good now

Updated by Cynicaaal

  • Author

hmmm, goto your Theos folder and check see if your sdk folder is empty. This happened to me so I downloaded the 9.3sdk and it's all good now

I've downloaded the 9.3 sdk might try a lower one to see if that works

Remove the:

 

%hook SKPaymentTransaction

-(void)_setTransactionState:(long long) fp8 {

fp8 = 1;

%orig(fp8);

}

%end

 

and just leave the transactionState.

installed a lower sdk and now it seems to try to compile it but now I'm getting "tweak.xm:5: error: %orig found outside of hook or subclass"

I've downloaded the 9.3 sdk might try a lower one to see if that works

installed a lower sdk and now it seems to try to compile it but now I'm getting "tweak.xm:5: error: %orig found outside of hook or subclass"

Change your tweak.xm to this:

 

 

%hook SKPaymentTransaction
 
-(void) transactionState:(long long)arg1 {
arg1 = 1;
%orig;
}
%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
  • Author

 

Change your tweak.xm to this:

 

%hook SKPaymentTransaction
 
-(void) transactionState:(long long)arg1 {
arg1 = 1;
%orig;
}
%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

still getting the same error. 

 

this is starting to get frustrating :(

 

Change your tweak.xm to this:

 

%hook SKPaymentTransaction
 
-(void) transactionState:(long long)arg1 {
arg1 = 1;
%orig;
}
%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

still getting the same error. 

 

this is starting to get frustrating :(

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.