expected an objective-c directive after '@'

1.3k views Asked by At

I am integrating XMPP Framework in my project. While i compile the project i got one issue i.e expected an objective-c directive after '@' in XMPPGroupCoreDataStorageObject.h Class.

//XMPPGroupCoreDataStorageObject.h

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>



@class XMPPUserCoreDataStorageObject;
@interface XMPPGroupCoreDataStorageObject : NSManagedObject {
@private
}
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSSet* users;
+ (void)clearEmptyGroupsInManagedObjectContext:(NSManagedObjectContext *)moc;
+ (id)fetchOrInsertGroupName:(NSString *) groupName inManagedObjectContext:(NSManagedObjectContext *)moc;
+ (id)insertGroupName:(NSString *) groupName inManagedObjectContext:(NSManagedObjectContext *)moc;


@end

While compile the code i got issue, please have a look in screenshot enter image description here

1

There are 1 answers

0
s100i29 On

I tried to compile your source code, no errors. Try clear project (Product -> Clean) and derived data, it should help.

how to clear derived data