Skip to content
Guest Big Announcement

Errors in Terminal for Make Project (Read)

Featured Replies

I'm making a very basic tweak for AppStore just removing all apps from updates tab so it just states all app are up to date and I get this error, it would be awesome if you could fix or help me fix this error. Thank you.

 

error image: 

The files inside the folder of project: 

 

-> My Tweak.xm:

#import <UIKit/UIKit.h>

%hook ASUpdatesViewController
-(void) _setUpdatesPageWithUpdates:(id) fromCache:(bool) {
id = NULL
bool = FALSE;
}
%end

%hook ASAppDelegate

-(void)applicationDidBecomeActive:(id)application {
    NSUserDefaults *validate = [NSUserDefaults standardUserDefaults];
    NSString *alreadyRun = @"already_run";
    if ([validate boolForKey:alreadyRun])  
    return;
    [validate setBool:YES forKey:alreadyRun];
    
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"NoUpdatesAvailable"
    message:@"Initialization Finished" delegate:nil cancelButtonTitle:@"Thanks"
    otherButtonTitles:nil];

    [alert show];
    [alert release];
}

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    if (buttonIndex != [alertView cancelButtonIndex]) {
        NSLog(@"Launching youtube");
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://youtube.com/StarSunSunny"]];
    } 
}
%end

 

-> my MakeFile: 

ARCHS = armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = NoUpdatesAvailable
NoUpdatesAvailable_FILES = Tweak.xm
NoUpdatesAvailable_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
    install.exec "killall -9 SpringBoard"

You need to have args

%hook ASUpdatesViewController
-(void) _setUpdatesPageWithUpdates:(id)arg1 fromCache:(bool)arg2 {
arg1 = NIL;
arg2 = FALSE;
}
%end

 

im not sure about "_"

  • Author
1 hour ago, Amuyea said:

You need to have args

%hook ASUpdatesViewController
-(void) _setUpdatesPageWithUpdates:(id)arg1 fromCache:(bool)arg2 {
arg1 = NIL;
arg2 = FALSE;
}
%end

 

im not sure about "_"

It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny

  • Author
6 hours ago, Amuyea said:

You need to have args

%hook ASUpdatesViewController
-(void) _setUpdatesPageWithUpdates:(id)arg1 fromCache:(bool)arg2 {
arg1 = NIL;
arg2 = FALSE;
}
%end

 

im not sure about "_"

It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny

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.