Jump to content

42 posts in this topic

Recommended Posts

Posted

Make file 

TARGET := iphone:clang

TARGET_SDK_VERSION := 8.1
TARGET_IPHONEOS_DEPLOYMENT_VERSION :=8
ARCHS := armv7 arm64

include /var/theos/makefiles/common.mk

TWEAK_NAME = Biztweak
Biztweak_FILES = Tweak.xm
Biztweak_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

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

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

Try not to mess with it. Also please click the code button to show it like this its a lot easier to read.

Tweak.xm

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

%hook SBPowerDownController

-(void)orderFront{

UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Hello"

message:@"Noooo"    // IDK if it supports emojis, I think it does but try without first.
delegate:self

cancelButtonTitle:@"Okay"
otherButtonTitles:@ nil]; 

[alert show];

}
%end

Make file

ARCHS = armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = Biztweak      // Make sure "Biztweak" is still the name of your tweak folder name.
Biztweak_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Biztweak_FRAMEWORKS = UIKit

CFLAGS = -w

after-install::
        install.exec "killall -9 SpringBoard"    // Try removing this line if it doesn't work as it can cause compiling issues.

Try not to change it. I recommend you delete your iOS 8 SDK because it seems to be wrong a bit.

I think that's all right, just replace it with the current one.

Updated by Fadexz
Code fix.
Posted

@Fadexz hey I still get the same error 


ld: library not found for -lobjc
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/firstPatch.bundle/firstPatch.64873355.unsigned] Error 1
 

I've make links and links with library's and out them in the sdk folder tried afew other lines and still same error, think  Theo's could be broken ?? Or is it working just not linking to the library needed ?? Thanks again

Posted (edited)

@staybizzy Try this which I found somewhere.

export TARGET := iphone:clang:8.4:6.1 export ARCHS := armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = Biztweak      // Make sure "Biztweak" is still the name of your tweak folder name.
Biztweak_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Biztweak_FRAMEWORKS = UIKit

CFLAGS = -w

after-install::
        install.exec "killall -9 SpringBoard"    // Try removing this line if it doesn't work as it can cause compiling issues.

IDK. If it doesn't work its probably your Theos missing stuff or someone else may know what is happening.

Updated by Fadexz
Posted

@Fadexz il try it but I've tried a lot of templates and even copied make files and tweak.xm from YouTube running the same Theo's and won't link the library on mine so think later today will try Theo's on my iPhone 4s 9.3.5 jailbreak think Theo's will work on the Phoenix jailbreak 9.3.5 ?? 

Posted
1 hour ago, staybizzy said:

@Fadexz il try it but I've tried a lot of templates and even copied make files and tweak.xm from YouTube running the same Theo's and won't link the library on mine so think later today will try Theo's on my iPhone 4s 9.3.5 jailbreak think Theo's will work on the Phoenix jailbreak 9.3.5 ?? 

Yeah give that a try.

What do you spell Theos "Theo's" lol.

Posted

@FadexzIt was auto corrected then sorry lol yeh I tried that And now I get 

Your current SYSROOT, "/var/mobile/biztweak/theos/sdks/iPhoneOS8.4sdk", appears to be missing.

so changed the 

Export TARGET := iphone:clang:8.4:3.7

To

export TARGET :=iPhone:clang:10.1:3.7

to try target the 10.1 sdks and then says same error but not been able to find the 10.1 sdks 

il try change then name of the folder to iohoneOS10.1sdk and see if that helps locate it apart from that I'm lost lol  thanks for ur time helping me and searching thins for me 

 

Posted

Ok so tried changing name on sdk folder I now get this 

 

Compiling Tweak.xm...
In file included from <built-in>:351:
In file included from <command line>:3:
/var/mobile/biztweak/theos/Prefix.pch:2:10: fatal error: 
      'Foundation/Foundation.h' file not found
        #import <Foundation/Foundation.h>
                ^

 

so i go to var/mobile/biztweak/theos/prefix.pch:2:10:fatal error 

 

and I see this ⬇️

 

#ifdef __OBJC__
        #import <Foundation/Foundation.h>
        #if TARGET_IPHONE || TARGET_IPHONE_SIMULATOR
                #import <UIKit/UIKit.h>
        #endif

        #define CLASS(cls) objc_getClass(#cls)

        #ifdef DEBUG
                #define __DEBUG__
        #endif
        
        #ifdef __DEBUG__
                #define CMLog(format, ...) NSLog(@"(%s) in [%s:%d] ::: %@", __PRETTY_FUNCTION__, __FILE__, __LINE__, [NSString stringWithFormat:format, ## __VA_ARGS__])
                #define MARK    CMLog(@"%s", __PRETTY_FUNCTION__);
                #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
                #define END_TIMER(msg)  NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start])
        #else
                #define CMLog(format, ...)
                #define MARK
                #define START_TIMER
                #define END_TIMER(msg)
                //#define NSLog(...)
        #endif

        #define NB [NSBundle mainBundle]
        #define UD [NSUserDefaults standardUserDefaults]
        #define FM [NSFileManager defaultManager]
#endif

~~~~~~~~~~~~~~~~~~~~~ 

And at the top is 

     #import <Foundation/Foundation.h>
                ^

so the files is where it said it was but won't pick it up lol 

And I also have same line in the tweak.xm also so confused.com lol 

Posted
27 minutes ago, staybizzy said:

Ok so tried changing name on sdk folder I now get this 

 

Compiling Tweak.xm...
In file included from <built-in>:351:
In file included from <command line>:3:
/var/mobile/biztweak/theos/Prefix.pch:2:10: fatal error: 
      'Foundation/Foundation.h' file not found
        #import <Foundation/Foundation.h>
                ^

 

so i go to var/mobile/biztweak/theos/prefix.pch:2:10:fatal error 

 

and I see this ⬇️

 

#ifdef __OBJC__
        #import <Foundation/Foundation.h>
        #if TARGET_IPHONE || TARGET_IPHONE_SIMULATOR
                #import <UIKit/UIKit.h>
        #endif

        #define CLASS(cls) objc_getClass(#cls)

        #ifdef DEBUG
                #define __DEBUG__
        #endif
        
        #ifdef __DEBUG__
                #define CMLog(format, ...) NSLog(@"(%s) in [%s:%d] ::: %@", __PRETTY_FUNCTION__, __FILE__, __LINE__, [NSString stringWithFormat:format, ## __VA_ARGS__])
                #define MARK    CMLog(@"%s", __PRETTY_FUNCTION__);
                #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
                #define END_TIMER(msg)  NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start])
        #else
                #define CMLog(format, ...)
                #define MARK
                #define START_TIMER
                #define END_TIMER(msg)
                //#define NSLog(...)
        #endif

        #define NB [NSBundle mainBundle]
        #define UD [NSUserDefaults standardUserDefaults]
        #define FM [NSFileManager defaultManager]
#endif

~~~~~~~~~~~~~~~~~~~~~ 

And at the top is 

     #import <Foundation/Foundation.h>
                ^

so the files is where it said it was but won't pick it up lol 

And I also have same line in the tweak.xm also so confused.com lol 

You are missing the headers in your SDK, try add more headers to the include folder in Theos.

Make sure you have iOS Tool Chains I think it is (and BigBoss Recommended Tools).

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