Jump to content

Patch error Theos


Stay Bizzy

42 posts in this topic

Recommended Posts

You can search that on google 'Foundation/Foundation.h' file not found' there's heaps on it.

Just now, staybizzy said:

@Fadexz Yup that's correct iostoolchain, and okey I will stick another load of headers in there haha and see if that works thank you again ?

No problem, hope your issue is almost solved!  :)

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1772567
Share on other sites

  • Replies 41
  • Created
  • Last Reply

@Fadexz me too. Il try again today if no luck will try on iOS 9.3.5 jailbreak see if any luck on that device , but I'm getting somewhere lol 1step forward 2steps back lol thanks again 

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1772572
Share on other sites


ld: library not found for -lobjc


I had the same issue. Mine was that I used an old SDK in  /var/theos/sdks.

After installing a new SDK (https://github.com/theos/sdks) it compiled perfectly for me.

So please remove any old SDK's you have and do a git clone https://github.com/theos/sdks (git clone git://github.com/theos/sdks when you get an error about https) in your /var/theos/sdks/ folder.

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1773700
Share on other sites

@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 

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1773853
Share on other sites

@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 

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1774106
Share on other sites

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# 

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1774193
Share on other sites

@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).

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1774210
Share on other sites

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

Link to comment
https://iosgods.com/topic/58001-patch-error-theos/page/3/#findComment-1774214
Share on other sites

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