Skip to content
Guest Big Announcement

Patch error Theos

Featured Replies

  • Author

@QuasaR hey , ok I tried that and I still get the same result but I couldn't clone it in had to download and unzip it in as I get a certificate problem when trying to clone, thanks for your reply 

  • Replies 41
  • Views 8.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • Author

@Fadexz @QuasaR

does this look like it's picking up the library now ??????? Just I'm getting aload of errors I've been filling in symbols ie ( : ) ( ; ) that the errors as me but stuck on afew errors 

 

AVAILABILITY_INTERNAL__IPHONE_9_0
^
In file included from <built-in>:346:
In file included from <command line>:3:
In file included from /var/mobile/hello/theos/Prefix.pch:2:
In file included from /var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
In file included from /var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:6:
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:299:1: error: 
      cannot declare variable inside @interface or @protocol
NS_AVAILABLE(10_11, 9_0);
^
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:249:34: note: 
      expanded from macro 'NS_AVAILABLE'
#define NS_AVAILABLE(_mac, _ios) CF_AVAILABLE(_mac, _ios)
                                 ^
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:59:34: note: 
      expanded from macro 'CF_AVAILABLE'
#define CF_AVAILABLE(_mac, _ios) __OSX_AVAILABLE_START...
                                 ^
/var/mobile/hello/theos/include/Availability.h:155:50: note: 
      expanded from macro '__OSX_AVAILABLE_STARTING'
    #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVA...
                                                 ^
-----------/

everytime I fix some I get another 20 errors lol 

Wow, indeed, you go for one error to the other :+

Try

export THEOS=/var/theos

and then make again
 

  • Author
1 hour ago, staybizzy said:

@Fadexz @QuasaR

does this look like it's picking up the library now ??????? Just I'm getting aload of errors I've been filling in symbols ie ( : ) ( ; ) that the errors as me but stuck on afew errors 

 

AVAILABILITY_INTERNAL__IPHONE_9_0
^
In file included from <built-in>:346:
In file included from <command line>:3:
In file included from /var/mobile/hello/theos/Prefix.pch:2:
In file included from /var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
In file included from /var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:6:
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:299:1: error: 
      cannot declare variable inside @interface or @protocol
NS_AVAILABLE(10_11, 9_0);
^
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:249:34: note: 
      expanded from macro 'NS_AVAILABLE'
#define NS_AVAILABLE(_mac, _ios) CF_AVAILABLE(_mac, _ios)
                                 ^
/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:59:34: note: 
      expanded from macro 'CF_AVAILABLE'
#define CF_AVAILABLE(_mac, _ios) __OSX_AVAILABLE_START...
                                 ^
/var/mobile/hello/theos/include/Availability.h:155:50: note: 
      expanded from macro '__OSX_AVAILABLE_STARTING'
    #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVA...
                                                 ^
-----------/

everytime I fix some I get another 20 errors lol 

Ok scratch that I get this error now 

 

hello...
 Copying resource directories into the application wrapper...
 Linking application hello...
ld: unexpected token: !tapi-tbd-v2 file '/var/mobile/hello/theos/sdks/iPhoneOS10.1.sdk/usr/lib/libobjc.tbd' for architecture armv7


clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)


make[2]: *** [obj/hello.app/hello.64873355.unsigned] Error 1


make[1]: *** [internal-application-all_] Error 2
make: *** [hello.all.application.variables] Error 2
Bizzy:/var/mobile/hello root# 

@staybizzy /var/mobile/hello/theos/ is not the normal directory, I think it should be /var/theos/ instead.

Try making the tweak again with the new SDK and just copy the text in the files to the new ones (tweak.xm and makefile).

  • Author
7 minutes ago, Fadexz said:

@staybizzy /var/mobile/hello/theos/ is not the normal directory, I think it should be /var/theos/ instead.

Try making the tweak again with the new SDK and just copy the text in the files to the new ones (tweak.xm and makefile).

@Fadexz haha I didn't even know I was doing it there back to drawing board lol thanks for noticing that 

And yeh /var/theos hahaha

41 minutes ago, staybizzy said:

@Fadexz haha I didn't even know I was doing it there back to drawing board lol thanks for noticing that 

And yeh /var/theos hahaha

No problem lol.

Updated by Fadexz

  • Author
1 hour ago, Fadexz said:

@staybizzy /var/mobile/hello/theos/ is not the normal directory, I think it should be /var/theos/ instead.

Try making the tweak again with the new SDK and just copy the text in the files to the new ones (tweak.xm and makefile).

/var/mobile/hello/theos(symlink) to 

/var/theos/sdks/iPhoneOS10.1.sdk/usr/lib/libojc.tbd

 

??? this is where I am at I started all again fresh 

Bizzy:/var/mobile/test root# make package
Making all for tweak Test...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
 Linking tweak Test...
ld: unexpected token: !tapi-tbd-v2 file '/var/mobile/test/theos/sdks/iPhoneOS10.1.sdk/usr/lib/libobjc.tbd' for architecture arm64
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/Test.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Test.all.tweak.variables] Error 2
Bizzy:/var/mobile/test root# 

--- make file ---

TARGET := iphone:clang:10.1:3.7
ARCHS := armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = Test
Test_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

Test_FRAMEWORKS = UIKit

CFLAGS = -w

after-install::
        install.exec

 

---- 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:@"Okay"
otherButtonTitles: nil]; 

[alert show];

}
%end

 

i tried it on my iPhone 4s 9.3.5 wouldn't install big boss recommended tools I also tried to install theos on iPhone 6s + 10.2 Yalu portal jailbreak and would t get some packages either ... I'm trying guys ??

  • Author

@Fadexz @DiDA 

Right so this error

ld: unexpected token: !tapi-tbd-v2 file '/var/mobile/test/theos/sdks/iPhoneOS10.1.sdk/usr/lib/libobjc.tbd' for architecture arm64

is because I had apples framework in with Theos so I deleted it all out then my tweaks started to compile - but - when I get the 2 files  the .plist and .dylib  and paste them to library then dynamiclibrarys then respringing then try the tweak and nothing is that because I have other tweaks installed ?? But I did delete some but still nothing lol and now when I run Theos command or "Theos" some reason I've lost my NIC bridge link up and get this 

Can't locate NIC/Bridge/Context.pm in @INC (you may need to install the NIC::Bridge::Context module) (@INC contains: /private/var/theos/bin/lib /usr/local/lib/perl5/site_perl/5.22.0/armv7-apple-darwin /usr/local/lib/perl5/site_perl/5.22.0 /usr/local/lib/perl5/5.22.0/armv7-apple-darwin /usr/local/lib/perl5/5.22.0 /usr/local/lib/perl5/site_perl .) at /var/theos/bin/nic.pl line 20.
BEGIN failed--compilation aborted at /var/theos/bin/nic.pl line 20.

 

if some one can tell me what file I need to put where I have all the folders backed up just need to know where to paste them back in lol thanks biz 

Updated by staybizzy

10 minutes ago, staybizzy said:

@Fadexz @DiDA 

Right so this error

ld: unexpected token: !tapi-tbd-v2 file '/var/mobile/test/theos/sdks/iPhoneOS10.1.sdk/usr/lib/libobjc.tbd' for architecture arm64

is because I had apples framework in with Theos so I deleted it all out then my tweaks started to compile - but - when I get the 2 files  the .plist and .dylib  and paste them to library then dynamiclibrarys then respringing then try the tweak and nothing is that because I have other tweaks installed ?? But I did delete some but still nothing lol and now when I run Theos command or "Theos" some reason I've lost my NIC bridge link up and get this 

Can't locate NIC/Bridge/Context.pm in @INC (you may need to install the NIC::Bridge::Context module) (@INC contains: /private/var/theos/bin/lib /usr/local/lib/perl5/site_perl/5.22.0/armv7-apple-darwin /usr/local/lib/perl5/site_perl/5.22.0 /usr/local/lib/perl5/5.22.0/armv7-apple-darwin /usr/local/lib/perl5/5.22.0 /usr/local/lib/perl5/site_perl .) at /var/theos/bin/nic.pl line 20.
BEGIN failed--compilation aborted at /var/theos/bin/nic.pl line 20.

 

if some one can tell me what file I need to put where I have all the folders backed up just need to know where to paste them back in lol thanks biz 

Just reinstall Theos, you haven't installed it properly. You don't even have Perl installed correctly.

  • Author

@Fadexz So i deleted some things by mistake lol as it was working as when I run the command I got the 5 options to what to build lol il reinstall thanks 

  • Author

Last login: Fri Oct  6 14:52:20 on ttys000
Bizzy:~ mobile$ su
Password:
Bizzy:/var/mobile root# theos
NIC 2.0 - New Instance Creator
------------------------------
  [1.] iphone/application
  [2.] iphone/library
  [3.] iphone/preference_bundle
  [4.] iphone/tool
  [5.] iphone/tweak
Choose a Template (required): 

reinstalled so is that Theos @ perl running ?? 

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.