0

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

luk2302
  • 55,258
  • 23
  • 97
  • 137
Ashu
  • 3,373
  • 38
  • 34
  • I have done this so many times. But not succeed. – Ashu Jun 19 '15 at 06:55
  • What is the implementation file which is being compiled when you get this error? It has probably `#define`d `groupName` to something or imported a header which has. Show the lines of that source file up through where it imports this header. You might also ask Xcode to preprocess that source file and examine what those lines have been turned into. – Ken Thomases Jun 19 '15 at 07:16
  • if you have same name constants in this 2 classes which could cause this error, please check that and let me know if it's fix? – MGY Jun 19 '15 at 07:18
  • may be a broken unicode problem, try to delete g,space,), and retype it ") g" – blld Nov 03 '15 at 04:42

1 Answers1

0

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

Community
  • 1
  • 1
s100i29
  • 221
  • 2
  • 6