How can I add a header folder to my project?

Posted by VansFannel on Stack Overflow See other posts from Stack Overflow or by VansFannel
Published on 2012-11-19T10:24:53Z Indexed on 2012/11/19 11:04 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

I'm developing an iOS application with latest Xcode 4.5.2.

I have the following folder structure:

/.../SourceCode/MyProjectFolder/projectName.xcodeproject
/.../SourceCode/MyProjectFolder/projectName/
/.../SourceCode/MyProjectFolder/projectName/xxx.m
/.../SourceCode/MyProjectFolder/projectName/xxx.h
/.../SourceCode/MyProjectFolder/projectName/PVRT/
/.../SourceCode/MyProjectFolder/projectName/PVRT/header1.h
/.../SourceCode/MyProjectFolder/projectName/PVRT/OtherFolder/header2.h

If in my header files I add this:

#include "header1.h"

I get a "header1.h" not found error.

But, if I add:

#include "PVRT/header1.h"

I get a "header2.h" not found.

On project settings I have add the following path:

${SOURCE_ROOT}/projectName/PVRT

But I'm getting the same error.

How can I fix this?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios