Xcode generates warnings. Implicit declaration of function N is not valid in C99 'for C functions imported into a .pch file

Unlike the behavior described in this SO topic: xCode 4.4 does not receive all imported .pch file headers? , my project really works successfully, but in any case, I see these annoying yellow moments Xcode gives me in my editors.

How can I teach Xcode how to import headers for .pch files, or is this bad behavior?

+4
source share
2 answers

This is very strange, but after rebooting Xcode and clearing the build folder (only one command + alt + shift + K in response to the @Matthias comment) the warnings disappeared.

I say weird because I saw them for about a week (after I extracted a couple of small C function functions like Cocoa Pod and started importing them into my .pch file).

I will provide more details here if I ever see this behavior again and notice any details on how this can happen.

+3
source

I fixed it by adding #include <arpa / inet.h> to the .pch file of my xcode project

-2
source

All Articles