I\'ve experienced something today while I\'m building my app. I\'ve declared a protocol in my MyObject1 and add delegate property on it. I\'ve assign MyObject2 as a Delegat
Use '@class MyObject;' in order to avoid import loop.
I've put my protocol declaration on separate file and import it on MyObject2
The error is caused due to import loop.
The error must be in import loop.
I had import "AppDelegate.h" in both the classes.I removed it from the class which declared protocol and the error was gone. :)
Are you doing an
#import "NameOfDelegate.h"
At the top of your MyObject
header?