Jump to content

42 posts in this topic

Recommended Posts

Posted

Hey guys biz again,

im stuck on creating my first patch conquered afew problems i.e. Preference.h file then pthread.h file missing now I'm stuck on these and I'm lost ⬇️


Bizzy:/var/mobile/firstpatch root# make package
/var/mobile/firstpatch/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/firstpatch/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for bundle firstPatch...
 Copying resource directories into the bundle wrapper...
 Linking bundle firstPatch...

⬇️⬇️ Errors start ⬇️⬇️
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
make[1]: *** [internal-bundle-all_] Error 2
make: *** [firstPatch.all.bundle.variables] Error 2
Got far in learning all this today and Thanks for your time 

biz 

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Posted
2 minutes ago, staybizzy said:

Hey guys biz again,

im stuck on creating my first patch conquered afew problems i.e. Preference.h file then pthread.h file missing now I'm stuck on these and I'm lost ⬇️


Bizzy:/var/mobile/firstpatch root# make package
/var/mobile/firstpatch/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/firstpatch/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for bundle firstPatch...
 Copying resource directories into the bundle wrapper...
 Linking bundle firstPatch...

⬇️⬇️ Errors start ⬇️⬇️
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
make[1]: *** [internal-bundle-all_] Error 2
make: *** [firstPatch.all.bundle.variables] Error 2
Got far in learning all this today and Thanks for your time 

biz 

Show your tweak.xm.

Posted

If correct 

 

ifeq ($(THEOS_CURRENT_INSTANCE),)
        include $(THEOS_MAKE_PATH)/master/tweak.mk
else
        ifeq ($(_THEOS_CURRENT_TYPE),tweak)
                include $(THEOS_MAKE_PATH)/instance/tweak.mk
        endif
endif

 

 

this what u mean sorry I'm new to this lol I can't find tweak.xm just tweak.mk 

Posted

Make sure to quote me or mention me so I see your reply.

On 01/10/2017 at 12:01 PM, staybizzy said:

If correct 

 

ifeq ($(THEOS_CURRENT_INSTANCE),)
        include $(THEOS_MAKE_PATH)/master/tweak.mk
else
        ifeq ($(_THEOS_CURRENT_TYPE),tweak)
                include $(THEOS_MAKE_PATH)/instance/tweak.mk
        endif
endif

 

this what u mean sorry I'm new to this lol I can't find tweak.xm just tweak.mk 

The tweak.xm is what you modified to make your tweak... usually in '/var/mobile/(YOURTWEAK)/'.

It should be a text file with your tweak in it, just copy the text.

However it looks like a missing file problem as well you even said that.

What SDK do you have in your theos folder? Get the one for your iOS version, it seems you are missing files.

Posted
16 minutes ago, staybizzy said:

@fadexz yeh I figured it all out I know where to find it now ?? thanks again ?

No problem. (y)

BTW you didn't mention me properly but oh well.

Posted

@Fadexz Ok so I got them errors sorted out but now I get this ⬇️⬇️⬇️⬇️

Tweak.xm:16: error: %end does not make sense inside a block

**this is my tweak.xm **

 

%hook SBPowerDownController

-{void)orderFront{

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

message:@"??Noooo??" 
delegate:self

cancelButtonTitle:@"okey"
otherButtonTitles:nil];

[alert show];

}

%end

----------------

I know it's something simple but ive tried to copy %end from others, rewriting it and still says same thing can someone please tell me what I'm doing wrong haha had me up a few nights now haha thanks for all ur help

biz 

Oh I went from patch to tweak and started all projects again ☹️

Posted

Update ---- @Fadexz

Fixed the %end error 

now saying 

Compiling Tweak.xm...
 Linking tweak Biztweak...
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/Biztweak.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Biztweak.all.tweak.variables] Error 2

i have sdks 8.1 and also 10.1 in the include folder haha so I'm lost again lol 

@DiDA can you shine some light please 

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??" 
delegate:self

cancelButtonTitle:@"okey"
otherButtonTitles:nil];

[alert show];

}

%end

 

 

¯\_(ツ)_/¯  help ?

@Joka any ideas buddy ? 

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