Hi thanks Shilo, Im using 2.1 Ive changed that line to #import <Sparrow/SPSprite.h> and that error is gone but now Im struggling to understand why the basic #import "SPSprite.h" worked before. Im a bit rusty at the moment because Ive just spent the last 3 months doing artwork and I can't remember how I set my project up before.
I have about 40 files which is a sort of work in progress Sparrow sub framework, so if I can avoid it I'd like not to have to change all my import statements in those 40+ classes just incase it breaks something in my previous project.
I have a vage recollection it has something to do with the App-prefix.pch
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Sparrow.h"
#import "MyFramework.h"
#import "Media.h"
#import "Constants.h"
#import "Pools.h"
#endif
but there is no App-prefix.pch in swift there is just the Bridging-header.h for object c swift interoperability which just imports
#import <Sparrow/Sparrow.h>
Which posses a few questions
1)if Sparrow is imported here, and my swift files can see the Sparrow classes without importing them on a file by file basis why can't my objective c classes ?
2)how do I pre include my own classes as in the App-prefix.pch example so I don't have to constantly import them ?
3)and finally back to my original question why was plain #import "SPSprite.h" ok before ?
PS I know Ive described my objective c classes as a sort of sub framework but they are just a folder I duplicate from project to project and drag and drop into my project.
Thanks 🙂