Marcin
Marcin

Reputation: 5589

iPhone - adding new group to class folder - import not detecting

I hope you can help with that.

OK i have created new group/folder under Classes - Libs: Classes/Libs and have created class there Msg.h

now I am trying to import it into my RootViewController

#import "Libs/Msg.h"

but I am getting an error:

Libs/Msg.h = no such file or directory    

what should i Do ?

cheers, /marcin

Upvotes: 1

Views: 160

Answers (2)

mdhughes
mdhughes

Reputation: 66

What path is your RootViewController in? If you give a path in import, it must be relative to the current file. Also check the case of both directory and file; Mac OS X is case-insensitive, but Xcode and iPhone are not.

Upvotes: 0

Marcin
Marcin

Reputation: 5589

OK, as it turns out, the Libs is not required just

#import "Msg.h"        

is enaugh even if its in folder level down.

thanks

Upvotes: 1

Related Questions