Jump to content

Theos Error iOS 11.2.6 no debug symbols


The Epic Gamer

2 posts in this topic

Recommended Posts

Posted

Hello, I have a problem, whenever I try to compile a patcher in Theos it gives me this error:

  

iPad:~ mobile$ su                                                                                                                            
Password:                                                                                                                                    
iPad:/var/mobile root# cd /var/mobile/kinemaster                                                                                             
iPad:/var/mobile/kinemaster root# make package                                                                                               
> Making all for tweak KineMaster…                                                                                                           
==> Preprocessing Tweak.xm…                                                                                                                  
==> Preprocessing Tweak.xm…                                                                                                                  
==> Compiling Tweak.xm (armv7)…                                                                                                              
==> Compiling Tweak.xm (arm64)…                                                                                                              
==> Linking tweak KineMaster (armv7)…                                                                                                        
==> Generating debug symbols for KineMaster…                                                                                                 
warning: no debug symbols in executable (-arch armv7)                                                                                        
==> Stripping KineMaster (armv7)…                                                                                                            
bash: line 1: 16960 Killed: 9               ( strip -x "/var/mobile/kinemaster/.theos/obj/armv7/KineMaster.dylib" )                          
make[3]: *** [/var/theos/makefiles/instance/library.mk:35: /var/mobile/kinemaster/.theos/obj/armv7/KineMaster.dylib] Error 137               
rm /var/mobile/kinemaster/.theos/obj/armv7/Tweak.xm.mm                                                                                       
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/kinemaster/.theos/obj/armv7/KineMaster.dylib] Error 2                 
make[2]: *** Waiting for unfinished jobs....                                                                                                 
==> Linking tweak KineMaster (arm64)…                                                                                                        
==> Generating debug symbols for KineMaster…                                                                                                 
warning: no debug symbols in executable (-arch arm64)                                                                                        
==> Stripping KineMaster (arm64)…                                                                                                            
bash: line 1: 16961 Killed: 9               ( strip -x "/var/mobile/kinemaster/.theos/obj/arm64/KineMaster.dylib" )                          
make[3]: *** [/var/theos/makefiles/instance/library.mk:35: /var/mobile/kinemaster/.theos/obj/arm64/KineMaster.dylib] Error 137               
rm /var/mobile/kinemaster/.theos/obj/arm64/Tweak.xm.mm                                                                                       
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/kinemaster/.theos/obj/arm64/KineMaster.dylib] Error 2                 
make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2                                                    
make: *** [/var/theos/makefiles/master/rules.mk:123: KineMaster.all.tweak.variables] Error 2                                                 
iPad:/var/mobile/kinemaster root#                                                                   

                                                                                                         

 Tweak.xm:                                        

   

@import Foundation;
@import UIKit;
#import <substrate.h>
#import "vm_writeData.h"

// To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-offsets/
// To Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject/

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.majdawwad.kinemaster.plist"

inline bool GetPrefBool(NSString *key) {
		return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}


// Add your MS/Flex/MSHook Code here. Examples can be found on iOSGods.


%ctor {

	// Code Injection example
    if(GetPrefBool(@"key1")) {
      vm_writeData(0x123456, 0x123456); // 
    }

    if(GetPrefBool(@"key2")) {
      vm_writeData(0x10963C, 0xC0F8AC70); // 
    }

    if(GetPrefBool(@"key3")) {
      vm_writeData(0x1806B8, 0x381C); // ARMv7Offsets
      vm_writeData(0x2FA51C, 0x381C); // 
      vm_writeData(0x1001D98E0, 0x1F2003D5); // ARM64Offsets
      vm_writeData(0x10038DD0C, 0x1F2003D5); // 
    }
}

%hook KMAudioSongItem
-(void) setIsPremium:(bool)arg1 {
if(GetPrefBool(@"key1")) {
arg1 = TRUE;
}
%orig(arg1);
}
%end

%hook KMAudioSongItem
-(bool) isPremium {
if(GetPrefBool(@"key1")) {
return TRUE;
}
return %orig;
}
%end


%hook LayerManager
-(bool) showWatermark {
if(GetPrefBool(@"key1")) {
return FALSE;
}
return %orig;
}
%end



%hook RemoveWatermarkManager
-(void) setRemoveWatermark:(bool)arg1 {
if(GetPrefBool(@"key1")) {
arg1 = TRUE;
}
%orig(arg1);
}
%end

// Automatic Popup Code
void setup() {
    UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Made for iOSGods.com" message:@"KineMaster Cheats by Majd Awwad for iOSGods.com!\n\nVisit the hack's official topic on iOSGods for more information and updates!" preferredStyle:UIAlertControllerStyleAlert];

    UIAlertAction *iosgods = [UIAlertAction actionWithTitle:@"Visit iOSGods.com!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
    [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"]];
    }];

    UIAlertAction *clubs = [UIAlertAction actionWithTitle:@"Visit the Clubs!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
    [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com/clubs/"]];
    }];

    UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you!" style:UIAlertActionStyleCancel handler:nil];

    [igcredits addAction:iosgods];
    [igcredits addAction:clubs];
    [igcredits addAction:thankyou];

    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];
}

void unsubscribeToLaunchEvent(void);

static void didFinishLaunching(CFNotificationCenterRef center, void *observer,
                               CFStringRef name, const void *object, CFDictionaryRef info) {
    setup();
    unsubscribeToLaunchEvent();
}

const char *authObserver = "authObserver";

void subscribeToLaunchEvent() {
    CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,
                                    (CFStringRef)UIApplicationDidFinishLaunchingNotification,
                                    NULL, CFNotificationSuspensionBehaviorDrop);
}

void unsubscribeToLaunchEvent() {
    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,
                                       (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);
}

__attribute__((constructor)) static void initialize() {
    subscribeToLaunchEvent();
}

                                                

Posted
On 8/16/2018 at 9:39 AM, The Epic Gamer said:

bash: line 1: 16961 Killed: 9

This may mean that you need to ldid the strip binary. If you're on Unc0ver, you may also need to sign it with the certificate unc0ver provides.

Archived

This topic is now archived and is closed to further replies.

×
  • 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