Search code examples
iosxcodexcode4

iOS: Strange XCode compilation error


I'm building a app with Bump API and Facebook SDK. And at some point suddenly an error appeared which hasn't been there before. The strange thing is, that it first was in an Facebook SDK header file and now it's in Bumper.h.

XCode Error

I'm pretty sure that the error is not where XCode says it is. But i can't find anything. This is pretty frustrating and it once again confirms that XCode can be a REAL pain.

Somebody of you have any ideas what could be wrong? I'm developing with iOS 5. Thx


Solution

  • Travel up the include chain. The actual error will be in something that includes Bumper.h or an include in the file that includes Bumper.h (and so on till you get to the missing @end , } or ; )

    When a compile is done all the includes are glued together into one file which is why you are seeing the consequences of the syntax error in the wrong place.