It looks like you're new here. If you want to get involved, click one of these buttons!
Here are the first few lines of my "Entitat.h" file:
Entitat.h:11:22: Cannot find interface declaration for 'NSObject', superclass of 'Entitat'
Entitat.h:15:5: Unknown type name 'CGPoint'
Entitat.h:16:5: Unknown type name 'CGSize'
Entitat.h:21:40: Expected a type // This one appears on each method in the .h file
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
What on Earth can be happening?? I used to run the project without ANY problem, and the class "Entitat" is the first class I created, from which other classes inherit. I've tried removing and deleting the last class I created, I've tried making a new project, copying the code for the general classes and importing my custom ones, I've tried deleting the app from the simulator, cleaning and rebuilding the project a thousand times, commenting the 'Foundation' and 'UIKit' imports from the 'Prefix.pch' and from the 'Entitat.h', etc... However, nothing seems to change this problem's behavior: everything I do drives to the same weird 'cannot find NSObject' problem, which I'm sure it drives to the others...
@interface Entitat : NSObject // Cannot find interface declaration for 'NSObject', bla bla bla
CGPoint position; // Unknown type name 'CGPoint'
CGSize size; // Unknown type name 'CGSize'
BOOL active; // Unknown type name 'BOOL'
-(id)initEntityWithId:(int)i Position:(CGPoint)pos Size:(CGSize)s Active:(BOOL)b; // Expected a type
-(void)setPosition:(CGPoint)p; // Expected a type
-(void)setActive:(BOOL)a; // Expected a type
// And the same 'expected a type error' for every other method