Jump to content

21 posts in this topic

Recommended Posts

Posted

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
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

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

Posted

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

Posted

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"

Posted

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

Posted

 

%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.

Posted (edited)

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
Posted

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"

Posted

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
Posted

 

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

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