5

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?

Community
  • 1
  • 1
Stanislav Pankevich
  • 11,044
  • 8
  • 69
  • 129
  • 2
    Xcode? Certainly not. At most the compiler. What have you ([{tried}]) imported? Which functions it is complaining about? –  Jan 10 '13 at 21:43
  • If you see the yellow sing only (but no actual warning during the compiler run), it might be sufficient to rebuild Xcode's symbol database. – Matthias Jan 10 '13 at 21:43
  • Suddenly I get this. I explicitly put the stuff in another .h file and included that, but that didn't work either. Cleaned, recompiled, restarted. Nothing works. – Jonny Oct 04 '15 at 07:40

2 Answers2

3

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.

Stanislav Pankevich
  • 11,044
  • 8
  • 69
  • 129
-2

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

aroragourav
  • 304
  • 3
  • 4