Xcode 4 and nested projects — header files not found
来源:互联网 发布:淘宝店装修流程图解 编辑:程序博客网 时间:2024/06/16 06:35
原文:http://stackoverflow.com/questions/5413338/xcode-4-and-nested-projects-header-files-not-found
Forget the whole public header thing with Xcode, it's a PITA and doesn't work correctly when archiving your app. Instead, have all static library header files on the project level and tell your app where to find it.
Ease your pain by making sure all targets have the same name for the build configuration (i.e. add an "AdHoc" and "Deployment" configuration to the static libraries).
In build settings, point the Header Search Paths (if you use
#include <file.h>
) or User Header Search Paths (if you use#include "file.h"
) to the directory of the static library project. If the static library project is inside your app directory, use this:"$(PROJECT_DIR)"
(recursive enabled)If you have a directory which contains a) the static library project and b) your app, then this should work:
"$(PROJECT_DIR)/.."
(recursive enabled)If the submodule contains compiled libraries, set your Library Search Paths to:
"$(TARGET_BUILD_DIR)"
Make sure all the static library projects that you use have Skip Install set to
YES
.Again, no public header files (Build Phases » Copy Headers) in any of the static libraries, otherwise Xcode will not be able to archive an app.
Make sure to tell Xcode when to build the static libraries, as shown in this Tech Doc from Apple.
- Xcode 4 and nested projects — header files not found
- Xcode 4 引入工程后引发的“ header files not found”问题的解决方法
- XCTest/XCTest.h not found on old projects built in Xcode
- XCTest/XCTest.h not found on old projects built in Xcode
- centos7下安装vmware 出现C header files matching your running kernel were not found.
- 在fedora14下安装vmware 7.1.4 build-385536 出现C header files matching your running kernel were not found. 错误
- Xcode symbol not found
- IOS之Nested Projects
- xcode 出现 symbol not found
- xcode 出现 symbol not found
- xcode显示symbal not found
- xcode : map file not found
- ddms files not found hprofconv.exe
- DDMS files not found:.....hprof-conv.exe
- Swift之Umbrella header .h not found
- DDMS files not found:hprof-conv.exe;The connection to adb is down, and a severe error has occured.
- Precompiled Header Files - stdafx.h and stdafx.cpp
- Xcode JumpToDefinition failed with symbol not found
- MVC 上传问题
- Unity 绘制数字
- Free OCR Software Downloads
- jquery 动态生成html后事件不触发
- MFC 初始化组合框的选中状态
- Xcode 4 and nested projects — header files not found
- Android开发_混淆器防止反编译-原始proguard.cfg文件
- Tesseract-OCR引擎 入门
- WM_CHAR,WM_KEYDOWN和WM_SYSKEYDOWN
- Extjs.Date 常用函数
- 从6万到6000万:网络作家上演比特币投资神话
- JAVA实现多线程生产者消费者模型
- tcp 与udp 的区别
- 计数排序(BitMap实现)