Expected function body after function declarator

Hello, I just started to have a problem with my project.


I'm developing an iPhone application and my project just started to pop the following error on one file:


User uploaded file

I have been looking for solutions to this problem, and none have proven useful.


I'm using XCode 4.6.2 under Mountain Lion 10.8.3, with deployment target 5.0 and compiler Apple LLVM compiler 4.2.


I really don't know why this is happening, haven't even modified this file for a while. It happens for both device and Simulator


Could anyone give me some pointers on how to solve this issue?

Posted on Jul 8, 2013 10:26 AM

Reply
9 replies

Jul 8, 2013 11:52 AM in response to Ranbeuer

It looks like you have added .h files to your target. Only .m files actually get added to a target. Header files are present in the project they they are only used as include files. You are attempting to compile them.


Select those header files in the project navigator. Then, show the inspector/Utilities pane if it isn't already visible. Under Target membership, your target should be unchecked for header files.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Expected function body after function declarator

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.