Besi
Besi

Reputation: 22939

Headers for my static library not found

I have a static library iOS project ProjectCore, that I want to include in the project MyProject.

In the library project I set:

PUBLIC_HEADERS_FOLDER_PATH = $(TARGET_NAME)

So I end up with the following structure

libProjectCore.a
ProjectCore (Folder)
+- ProjectCore.h
+- ProjectCoreUtil.h

In the directory /.../DerivedData/MyProject-xyzabcd/Products/Release-iphoneos/

Now I setup MyProject

Curiously neither of the approaches work:

#import "ProjectCore.h" // With the (Recursive Flag set for the Headers)
#import <ProjectCore/ProjectCore.h> // The way RestKit does it

Upvotes: 8

Views: 12295

Answers (1)

Johnnywho
Johnnywho

Reputation: 5539

I suggest using ${TARGET_BUILD_DIR}/ProjectCore in User Header Search Paths - it works for me.

Upvotes: 4

Related Questions