Skip to content
Guest Big Announcement

Theos - make package errors - Need help fixing

Featured Replies

2 errors that appear.

n9NZ5xr.png

Says it's missing '%end' at the end of the tweak file...

If someone knows please help me fix the tweak.

Any help is great, this has been going on for a while.

 

Thanks!   (y)

Add '%end' at the end of your tweak.xm...

  • Author
8 hours ago, Zimon said:

Add '%end' at the end of your tweak.xm...

I tried that but it ended up having more errors, i'll give it a go now though.

  • Author
7 hours ago, DutchGreen said:

How about you post your tweak.xm and makefile.... Makes it a whole lot easier.

I was thinking about that.

  • Author

Tweak.xm

%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
    if(GetPrefBool(@"key1")) {
        return; //returns void to null//
     %orig (arg2, 5);
    } 
    return %orig;
}

It has no %end but when I add it, it shows a lot of errors when making the package. I may have added it wrong.

 

Makefile

include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

 

Updated by AUSSIE G4M3R

On 8-8-2017 at 2:57 AM, AUSSIE G4M3R said:

Tweak.xm


%hook PromoteViewController

-(void)goBuyViews:(int)arg1 numbercoins:(int)arg2 {
    if(GetPrefBool(@"key1")) {
        return; //returns void to null//
     %orig (arg2, 5);
    } 
    return %orig;
}

It has no %end but when I add it, it shows a lot of errors when making the package. I may have added it wrong.

 

Makefile


include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

 

Tweak.xm

%hook PromoteViewController

-(void)goBuyViews:(int) numbercoins:(int)argument {
  return %orig; 
    argument = 10000;
}
%end

 

Makefile

export ARCHS = armv7 arm64
export TARGET = iphone:latest:8.0

include theos/makefiles/common.mk

TWEAK_NAME = YoutuberFreeViewsLikes
YoutuberFreeViewsLikes_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Try this. I'm in the process of rejailbreaking so can't test if it compiles rn

Updated by DutchGreen

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.