You need to add -I/var/include . iphone-gcc does not notice that most of the main headers are in this folder and search in another directory, which you can see with gcc -v test.c Try this method or copy all the headers and libraries from the SDK (preferably from the same version of iOS as yours) to / usr / include and / usr / lib. You will still need Frameworks in the / Library / Frameworks section, or you will need to add the location through which they are located through -F/path/to/framework/from/sdk
source share