Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode produces warnings 'Implicit declaration of function N is invalid in C99' for C functions imported in .pch file

Tags:

xcode

Unlike the behavior described in this SO topic: xCode 4.4 does not get all the .pch file headers imports?, my project does builds successfully, but anyway I see these annoying yellow highlights Xcode gives me in its editors.

How can I teach Xcode to pick up .pch-file headers imports or is this a buggy behavior?

like image 919
Stanislav Pankevich Avatar asked Nov 12 '22 13:11

Stanislav Pankevich


1 Answers

This is very strange, but after restarting Xcode and cleaning build folder (just one more command+alt+shift+K in response to @Matthias comment) warnings have gone.

I say 'strange' because I did see them for about a week (after I had extracted a couple of small utility C functions as a Cocoa Pod and had begun importing them in my .pch-file).

I will provide more details here, if I ever see this behavior again and notice any details about how it can occur.

like image 196
Stanislav Pankevich Avatar answered Nov 15 '22 08:11

Stanislav Pankevich