Skip to content
Guest Big Announcement

fatal error: Foundation.h not found

Featured Replies

rHU5pZT.jpg

 

so i go to

/var/theos/Prefix.pch

and it said that #import <Foundation/Foundation.h>

was already there i don't know why it says file not found

does anyone know why.              THANKS :)

Solved by Cyber X

  • Author

Now i get this

/bin/sh: cut: command not found
/bin/sh: md5sum: command not found
/bin/sh: cut: command not found
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
In file included from <built-in>:181:
In file included from <command line>:
In file included from /var/mobile/kikv/theos/Prefix.pch:2:
In file included from /var/mobile/kikv/theos/include/Foundation/Foundation.h:6:
/var/mobile/kikv/theos/sdks/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreFounda                             tion.framework/Headers/CoreFoundation.h:11:10: fatal error:
      'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
make[2]: *** [obj/Tweak.xm..o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [kikv.all.tweak.variables] Error 2

Don't include Foundation/Foundation.h , you dont need it. No tutorial is accurate at this point so only include substrate.h

Updated by castix

  • Author
  • Solution

How I Fixed it...


 


OLD 


I was using sdk 7.1


missing alot of .h


 


:new:


re download theos


now using sdk 8.1


added alot more .h to the include folder


 


 


Thanks To DiDA 


:nyancat:

I am using ios 7.0.4 is it ok if i use sdk 8.1????? because i had the same error as @L33TPr0xY and I also downloaded Ryan Petric but I still have foundation.h missing. I also deleted the file but I still get the same problem. If i can't use sdks 8.1 how do i fix it?

Still get an error. Anyone know how to fix this?

Dylans-iPhone:~/hello mobile$ make package
> Making all for application hello…
==> Copying resource directories into the application wrapper…
==> Compiling main.m (armv7)…
In file included from <built-in>:1:
/var/mobile/theos/Prefix.pch:11:11: fatal error: 
      'Foundation/Foundation.h' file not found
                #import <Foundation/Foundation.h>
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [/var/mobile/hello/.theos/obj/debug/armv7/main.m.3f8f93fb.o] Error 1
make[2]: *** [/var/mobile/hello/.theos/obj/debug/armv7/hello.app/hello] Error 2
make[1]: *** [internal-application-all_] Error 2
make: *** [hello.all.application.variables] Error 2
Dylans-iPhone:~/hello mobile$ 

 

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.