English 中文(简体)
X 编码链接项目负责人档案
原标题:Xcode linked project header files not found

Here is the situation I have:
ProjectA - Xcode static library project.
ProjectA contains logical code group ExternLib with file ExternLib.h. ExternLib.h itself is in the folder Classes/lib/ExternLib (relative to ProjectA folder). Within ProjectA, I use ExternLib.h simply as: #import "ExternLib.h". This works fine.

其次,我有B项目。 其中包括项目A作为联系X代码项目。 这一目标已正确地增加。 然而,当我列入项目B的档案,而项目B在建筑项目B后又包括ExternLib.h时,我发现了一个错误,说无法找到档案。

我尝试在头盔搜索道路(所有类型:相对、绝对、再入侵等)上添加一条通往ExternLib.h的道路,但没有结果。 我已经核实,静态图书馆目标有复印机头,档案馆也列入其中。

谁能够说明如何解决这一问题?

问题回答
  1. 添加一条龙文Script 建设阶段,以达到执行《公约》的异构体的目标

    mkdir -p "${BUILT_PRODUCTS_DIR}ExternLibHeaders"
    
  2. 添加制版文档,将“ExternLib”头目文档编成{BUILT_PRODUCTS_DIR}ExternLibHeaders,并添加所有<代码>。 ExternLib指该阶段的头盔。

  3. 在B项目评估指标中,将标题搜索路径上的所有组合增加${BUILT_PRODUCTS_DIR}/ExternLibHeaders/

  4. 在Xcode > Pfers > Building,将建筑产品目录设定到某些共同地点。

第四步至关重要;它确保<代码> BUILT_PRODUCTS_DIR对这两个项目都是相同的。

确实很难说什么可能是错误的。

首先,我先对建造和使用静态图书馆进行辅导,看看看是否有任何步骤征求你们的意见。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...