No headers for my static library found

I have an iOS project from the ProjectCore static library that I want to include in MyProject .

In the library project, I installed:

 PUBLIC_HEADERS_FOLDER_PATH = $(TARGET_NAME) 

So, I get the following structure

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

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

Now i am setting up MyProject

  • Add ProjectCore as a git submodule next to MyProject.xcodeproj
  • Drag ProjectCore.xcodeproj into Xcode
  • Add project as a dependency
  • Link to libProjectCore.a
  • I set the "header search path" for it to $(BUILT_PRODUCTS_DIR) , which should point to the folder above.

Curiously, none of the approaches work:

 #import "ProjectCore.h" // With the (Recursive Flag set for the Headers) #import <ProjectCore/ProjectCore.h> // The way RestKit does it 
+6
source share
1 answer

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

+4
source

Source: https://habr.com/ru/post/908499/


All Articles