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
ProjectCore
as a git submodule next to MyProject.xcodeproj
ProjectCore.xcodeproj
to Xcode libProjectCore.a
$(BUILT_PRODUCTS_DIR)
which should point to the folder above. 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
我建议在User Header Search Paths
使用${TARGET_BUILD_DIR}/ProjectCore
- 它适用于我。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.