Jump to content

3 posts in this topic

Recommended Posts

Posted (edited)

Thanks to some kind people on Theos’s discord and a little research of my own, I was able to fix this error. Thank you for your interest in this article!

Hello, i'm stuck with clang error while making package using Theos

Here is my error


https://img.upanh.tv/2024/07/14/E022C41A-820D-4662-8464-83D22E81CA0D.png

Im using iphone 7plus / iOS 15.7.6

sdk: iPhoneOS16.5

This is my make file:

Spoiler
export THEOS=/var/jb/var/mobile/theos
export TARGET = iphone:clang:16.5:16.5
export SDKVERSION=16.5

ARCH = arm64 arm64e
DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1
#GO_EASY_ON_ME = 1

include $(THEOS)/makefiles/common.mk


TWEAK_NAME = MenuAOV

MenuAOV_LDFLAGS += JRMemory.framework/JRMemory
MenuAOV_FRAMEWORKS =  UIKit Foundation Security QuartzCore CoreTelephony AVFoundation AudioToolbox CoreGraphics CoreText Accelerate GLKit SystemConfiguration GameController 


MenuAOV_EXTRA_FRAMEWORKS += JRMemory
MenuAOV_CCFLAGS = -std=c++11 -fno-rtti -fno-exceptions -DNDEBUG
MenuAOV_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-value
MenuAOV_FILES =tweak.mm 


include $(THEOS_MAKE_PATH)/tweak.mk

 


 

this is my tweak.mm:

Spoiler

#import "IGGView.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIAlertView.h>
#import <UIKit/UIControl.h>
#import "Offset.h"
#import "mahoa.h"

#include <substrate.h>
#import "JRMemory.framework/Headers/MemScan.h"

@interface IGGView()
@end
UIButton *closeButton;
UIView *menuView;
@implementation IGGView

#pragma mark -------------------------------------View-------------------------------------------

+ (void)load
{
//info


dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2* NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        IGGView *view = [IGGView View];
        [view show];
        [[[[UIApplication sharedApplication] windows]lastObject] addSubview:view];
//New Application Windows
      UIWindow*Window = [UIApplication sharedApplication].keyWindow;
//Open menu with 3 finger

  UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    tap.numberOfTapsRequired = 2;      // MultiTouch
    tap.numberOfTouchesRequired = 3;   // Number finger touch
    [Window addGestureRecognizer:tap];
    [tap addTarget:self action:@selector(expand)]; // Check status
//}];

    });


}

+ (instancetype)View
{
    return [[IGGView alloc] initWithFrame:[UIScreen mainScreen].bounds];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = NO;
  
    }
    return self;
}

- (void)show
{
    self.hidden = NO;

}
#pragma mark -------------------------------------Event-------------------------------------------

//Start creating menu
+ (void)expand {

     //New menu view
    UIWindow*mainWindow;
    mainWindow = [UIApplication sharedApplication].keyWindow;

      

UILabel *myLabel1 = [[UILabel alloc]
initWithFrame:CGRectMake(20, 325.5, 300, 30)];
myLabel1.textColor = [UIColor cyanColor];
myLabel1.font = [UIFont fontWithName:@"AvenirNext-HeavyItalic" size:13];
myLabel1.numberOfLines = 1;
myLabel1.text = [NSString stringWithFormat:@"‍iOS Crack GB"];
myLabel1.textAlignment = NSTextAlignmentCenter;
myLabel1.shadowColor = [UIColor whiteColor];
myLabel1.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel1];

    menuView = [[UIView alloc] 
    initWithFrame:CGRectMake(210, 90, 300, 190)];//menu size height
    menuView.backgroundColor=[UIColor colorWithRed: 0.00 green: 0.00 blue: 0.00 alpha: 0.60];//Color
    menuView.layer.cornerRadius = 15;//Radious corner
    menuView.hidden=NO;//whether to hide
    [mainWindow addSubview:menuView];  
    //Create a close menu button
   closeButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    closeButton.frame = CGRectMake(265, 2, 30, 30);
    [closeButton setTitle:@"" forState:UIControlStateNormal];
    [closeButton setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
    [closeButton addTarget:self action:@selector(closeMenu) forControlEvents:UIControlEventTouchUpInside];
    closeButton.hidden = NO; 
    [menuView addSubview:closeButton];
 

UILabel *myLabel2 = [[UILabel alloc]
initWithFrame:CGRectMake(65, 1, 170, 30)];
myLabel2.textColor = [UIColor cyanColor];
myLabel2.font = [UIFont systemFontOfSize:17]; 
myLabel2.numberOfLines = 1;
myLabel2.text = [NSString stringWithFormat:@"‍Menu AOV"];
myLabel2.textAlignment = NSTextAlignmentCenter;
myLabel2.shadowColor = [UIColor colorWithRed: 0.9686 green: 0.3961 blue: 0.8549 alpha: 1];
myLabel2.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel2];
 [menuView addSubview: myLabel2];


UILabel *myLabel3 = [[UILabel alloc]
initWithFrame:CGRectMake(40, 13, 170, 30)];
//myLabel3.textColor = [UIColor cyanColor];
myLabel3.font = [UIFont systemFontOfSize:8]; 
myLabel3.numberOfLines = 1;
//myLabel3.text = [NSString stringWithFormat:@"‍Copyright © by Ninh"];
myLabel3.text = [NSString stringWithFormat:@"‍"];
myLabel3.textAlignment = NSTextAlignmentCenter;
myLabel3.textColor = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 0.60];
myLabel3.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel3];
 [menuView addSubview: myLabel3];
[UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat animations:^{
    CGRect frame = myLabel3.frame;
    frame.origin.x += 50;
    myLabel3.frame = frame;
} completion:nil];


UILabel *myLabel4 = [[UILabel alloc]
initWithFrame:CGRectMake(0, 70, 300, 80)];
//myLabel3.textColor = [UIColor cyanColor];
myLabel4.font = [UIFont systemFontOfSize:14]; 
myLabel4.numberOfLines = 1;
myLabel4.text = [NSString stringWithFormat:@"‍Map Bật Tại Sảng Bật Trong Trận Vô Tác Dụng"];
myLabel4.textAlignment = NSTextAlignmentCenter;
myLabel4.textColor = [UIColor whiteColor];
myLabel4.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel4];
 [menuView addSubview: myLabel4];


UILabel *myLabel5 = [[UILabel alloc]
initWithFrame:CGRectMake(34, 89, 230, 80)];
//myLabel5.textColor = [UIColor cyanColor];
myLabel5.font = [UIFont systemFontOfSize:14]; 
myLabel5.numberOfLines = 1;
myLabel5.text = [NSString stringWithFormat:@"‍Địt cụ bọn chó rách share lén"];
myLabel5.textAlignment = NSTextAlignmentCenter;
myLabel5.textColor = [UIColor whiteColor];
myLabel5.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel5];
 [menuView addSubview: myLabel5];

UILabel *myLabel6 = [[UILabel alloc]
initWithFrame:CGRectMake(104, 115, 230, 80)];
//myLabel6.textColor = [UIColor cyanColor];
myLabel6.font = [UIFont systemFontOfSize:15]; 
myLabel6.numberOfLines = 1;
myLabel6.text = [NSString stringWithFormat:@"‍-iOS Crack GB-"];
myLabel6.textAlignment = NSTextAlignmentCenter;
myLabel6.textColor = [UIColor redColor];
myLabel6.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel6];
 [menuView addSubview: myLabel6];


       //Define to store multiple data


     NSUserDefaults*defaults = [NSUserDefaults standardUserDefaults];
    [defaults synchronize];

    //添加开关功能
    UISwitch* SW1 = [[UISwitch alloc] initWithFrame:CGRectMake(80, 53, 51, 31)];
    SW1.thumbTintColor = [UIColor cyanColor];
    SW1.onTintColor = [UIColor colorWithRed: 0.9686 green: 0.3961 blue: 0.8549 alpha: 1];
    SW1.tintColor = [UIColor clearColor];
    [SW1 addTarget:self action:@selector(feature1:)  forControlEvents:UIControlEventValueChanged];
    [menuView addSubview:SW1];
   //定义开关默认开启
   BOOL sw1 = [defaults boolForKey:@"sw1"];
    if (sw1 == YES) { [SW1 setOn:YES];   } 
    else { [SW1 setOn:NO];     }
      UILabel* AL1 = [[UILabel alloc] initWithFrame:CGRectMake(141, 48, 100, 40)];
      [AL1 setText:@"Map Sáng"];
      [AL1 setTextColor:[UIColor whiteColor] ];
      [AL1 setBackgroundColor:[UIColor clearColor]];
       AL1.font = [UIFont systemFontOfSize:18];
      [menuView addSubview:AL1];
[UIView animateWithDuration:0.5
                      delay:0.0
                    options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse
                 animations:^{
                     AL1.alpha = 0.5;
                 }
                 completion:nil];

}

  
//无后
+ (void)feature1:(UISwitch *)SW1 {
    
    if ([SW1 isOn]) {
//开启
 
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

    [defaults setBool:YES forKey:@"sw1"];

    [defaults synchronize];

patchOffset(OFFSET, HEX);

        } else {

patchOffset(OFFSET, HEX);


    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

    [defaults setBool:NO forKey:@"sw1"];

    [defaults synchronize];

}}

//创建关闭菜单
+ (void)closeMenu { menuView.hidden = YES; } 


@end

 

 

 

Updated by Giabao999
Posted

 

4 hours ago, Giabao999 said:

Hello, i'm stuck with clang error while making package using Theos

Here is my error


https://img.upanh.tv/2024/07/14/E022C41A-820D-4662-8464-83D22E81CA0D.png

Im using iphone 7plus / iOS 15.7.6

sdk: iPhoneOS16.5

This is my make file:

  Hide contents
export THEOS=/var/jb/var/mobile/theos
export TARGET = iphone:clang:16.5:16.5
export SDKVERSION=16.5

ARCH = arm64 arm64e
DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1
#GO_EASY_ON_ME = 1

include $(THEOS)/makefiles/common.mk


TWEAK_NAME = MenuAOV

MenuAOV_LDFLAGS += JRMemory.framework/JRMemory
MenuAOV_FRAMEWORKS =  UIKit Foundation Security QuartzCore CoreTelephony AVFoundation AudioToolbox CoreGraphics CoreText Accelerate GLKit SystemConfiguration GameController 


MenuAOV_EXTRA_FRAMEWORKS += JRMemory
MenuAOV_CCFLAGS = -std=c++11 -fno-rtti -fno-exceptions -DNDEBUG
MenuAOV_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-value
MenuAOV_FILES =tweak.mm 


include $(THEOS_MAKE_PATH)/tweak.mk

 


 

this is my tweak.mm:

  Reveal hidden contents

#import "IGGView.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIAlertView.h>
#import <UIKit/UIControl.h>
#import "Offset.h"
#import "mahoa.h"

#include <substrate.h>
#import "JRMemory.framework/Headers/MemScan.h"

@interface IGGView()
@end
UIButton *closeButton;
UIView *menuView;
@implementation IGGView

#pragma mark -------------------------------------View-------------------------------------------

+ (void)load
{
//info


dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2* NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        IGGView *view = [IGGView View];
        [view show];
        [[[[UIApplication sharedApplication] windows]lastObject] addSubview:view];
//New Application Windows
      UIWindow*Window = [UIApplication sharedApplication].keyWindow;
//Open menu with 3 finger

  UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    tap.numberOfTapsRequired = 2;      // MultiTouch
    tap.numberOfTouchesRequired = 3;   // Number finger touch
    [Window addGestureRecognizer:tap];
    [tap addTarget:self action:@selector(expand)]; // Check status
//}];

    });


}

+ (instancetype)View
{
    return [[IGGView alloc] initWithFrame:[UIScreen mainScreen].bounds];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = NO;
  
    }
    return self;
}

- (void)show
{
    self.hidden = NO;

}
#pragma mark -------------------------------------Event-------------------------------------------

//Start creating menu
+ (void)expand {

     //New menu view
    UIWindow*mainWindow;
    mainWindow = [UIApplication sharedApplication].keyWindow;

      

UILabel *myLabel1 = [[UILabel alloc]
initWithFrame:CGRectMake(20, 325.5, 300, 30)];
myLabel1.textColor = [UIColor cyanColor];
myLabel1.font = [UIFont fontWithName:@"AvenirNext-HeavyItalic" size:13];
myLabel1.numberOfLines = 1;
myLabel1.text = [NSString stringWithFormat:@"‍iOS Crack GB"];
myLabel1.textAlignment = NSTextAlignmentCenter;
myLabel1.shadowColor = [UIColor whiteColor];
myLabel1.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel1];

    menuView = [[UIView alloc] 
    initWithFrame:CGRectMake(210, 90, 300, 190)];//menu size height
    menuView.backgroundColor=[UIColor colorWithRed: 0.00 green: 0.00 blue: 0.00 alpha: 0.60];//Color
    menuView.layer.cornerRadius = 15;//Radious corner
    menuView.hidden=NO;//whether to hide
    [mainWindow addSubview:menuView];  
    //Create a close menu button
   closeButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    closeButton.frame = CGRectMake(265, 2, 30, 30);
    [closeButton setTitle:@"" forState:UIControlStateNormal];
    [closeButton setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
    [closeButton addTarget:self action:@selector(closeMenu) forControlEvents:UIControlEventTouchUpInside];
    closeButton.hidden = NO; 
    [menuView addSubview:closeButton];
 

UILabel *myLabel2 = [[UILabel alloc]
initWithFrame:CGRectMake(65, 1, 170, 30)];
myLabel2.textColor = [UIColor cyanColor];
myLabel2.font = [UIFont systemFontOfSize:17]; 
myLabel2.numberOfLines = 1;
myLabel2.text = [NSString stringWithFormat:@"‍Menu AOV"];
myLabel2.textAlignment = NSTextAlignmentCenter;
myLabel2.shadowColor = [UIColor colorWithRed: 0.9686 green: 0.3961 blue: 0.8549 alpha: 1];
myLabel2.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel2];
 [menuView addSubview: myLabel2];


UILabel *myLabel3 = [[UILabel alloc]
initWithFrame:CGRectMake(40, 13, 170, 30)];
//myLabel3.textColor = [UIColor cyanColor];
myLabel3.font = [UIFont systemFontOfSize:8]; 
myLabel3.numberOfLines = 1;
//myLabel3.text = [NSString stringWithFormat:@"‍Copyright © by Ninh"];
myLabel3.text = [NSString stringWithFormat:@"‍"];
myLabel3.textAlignment = NSTextAlignmentCenter;
myLabel3.textColor = [UIColor colorWithRed: 1 green: 1 blue: 1 alpha: 0.60];
myLabel3.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel3];
 [menuView addSubview: myLabel3];
[UIView animateWithDuration:2.0 delay:0.0 options:UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat animations:^{
    CGRect frame = myLabel3.frame;
    frame.origin.x += 50;
    myLabel3.frame = frame;
} completion:nil];


UILabel *myLabel4 = [[UILabel alloc]
initWithFrame:CGRectMake(0, 70, 300, 80)];
//myLabel3.textColor = [UIColor cyanColor];
myLabel4.font = [UIFont systemFontOfSize:14]; 
myLabel4.numberOfLines = 1;
myLabel4.text = [NSString stringWithFormat:@"‍Map Bật Tại Sảng Bật Trong Trận Vô Tác Dụng"];
myLabel4.textAlignment = NSTextAlignmentCenter;
myLabel4.textColor = [UIColor whiteColor];
myLabel4.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel4];
 [menuView addSubview: myLabel4];


UILabel *myLabel5 = [[UILabel alloc]
initWithFrame:CGRectMake(34, 89, 230, 80)];
//myLabel5.textColor = [UIColor cyanColor];
myLabel5.font = [UIFont systemFontOfSize:14]; 
myLabel5.numberOfLines = 1;
myLabel5.text = [NSString stringWithFormat:@"‍Địt cụ bọn chó rách share lén"];
myLabel5.textAlignment = NSTextAlignmentCenter;
myLabel5.textColor = [UIColor whiteColor];
myLabel5.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel5];
 [menuView addSubview: myLabel5];

UILabel *myLabel6 = [[UILabel alloc]
initWithFrame:CGRectMake(104, 115, 230, 80)];
//myLabel6.textColor = [UIColor cyanColor];
myLabel6.font = [UIFont systemFontOfSize:15]; 
myLabel6.numberOfLines = 1;
myLabel6.text = [NSString stringWithFormat:@"‍-iOS Crack GB-"];
myLabel6.textAlignment = NSTextAlignmentCenter;
myLabel6.textColor = [UIColor redColor];
myLabel6.shadowOffset = CGSizeMake(0.70,0.70); 
[mainWindow addSubview:myLabel6];
 [menuView addSubview: myLabel6];


       //Define to store multiple data


     NSUserDefaults*defaults = [NSUserDefaults standardUserDefaults];
    [defaults synchronize];

    //添加开关功能
    UISwitch* SW1 = [[UISwitch alloc] initWithFrame:CGRectMake(80, 53, 51, 31)];
    SW1.thumbTintColor = [UIColor cyanColor];
    SW1.onTintColor = [UIColor colorWithRed: 0.9686 green: 0.3961 blue: 0.8549 alpha: 1];
    SW1.tintColor = [UIColor clearColor];
    [SW1 addTarget:self action:@selector(feature1:)  forControlEvents:UIControlEventValueChanged];
    [menuView addSubview:SW1];
   //定义开关默认开启
   BOOL sw1 = [defaults boolForKey:@"sw1"];
    if (sw1 == YES) { [SW1 setOn:YES];   } 
    else { [SW1 setOn:NO];     }
      UILabel* AL1 = [[UILabel alloc] initWithFrame:CGRectMake(141, 48, 100, 40)];
      [AL1 setText:@"Map Sáng"];
      [AL1 setTextColor:[UIColor whiteColor] ];
      [AL1 setBackgroundColor:[UIColor clearColor]];
       AL1.font = [UIFont systemFontOfSize:18];
      [menuView addSubview:AL1];
[UIView animateWithDuration:0.5
                      delay:0.0
                    options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse
                 animations:^{
                     AL1.alpha = 0.5;
                 }
                 completion:nil];

}

  
//无后
+ (void)feature1:(UISwitch *)SW1 {
    
    if ([SW1 isOn]) {
//开启
 
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

    [defaults setBool:YES forKey:@"sw1"];

    [defaults synchronize];

patchOffset(OFFSET, HEX);

        } else {

patchOffset(OFFSET, HEX);


    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

    [defaults setBool:NO forKey:@"sw1"];

    [defaults synchronize];

}}

//创建关闭菜单
+ (void)closeMenu { menuView.hidden = YES; } 


@end

 

 

 

MenuAOV_EXTRA_FRAMEWORKS += JRMemory

delete it in makefile and try again

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