Why aren't static library headers found?

I used the Clint Harris tutorial to set up code sharing between projects, and everything works just as expected on my computer. But on my machine with colleagues, it seems that the compiler does not find the header file from the static library project when it is created.

My co-worker got my project by cloning a git repository. We checked all the appropriate build and configuration flags for Xcode n times, but the project simply refuses to compile on our computer.

Here is what I asked my colleague to do, mostly copied and pasted from a textbook:

  • Make sure that there is no empty space in the path to the project directory.
  • Inside the project directory, create another folder named "build_output".
  • In Xcode, under "Xcode> Preferences", select the "Construction" tab and set "Place assembly of projects to" in "Custom location" and specify the path to the created directory of the general assembly.
  • Set "Place intermediate build files in" to "Using build products."
  • Select the Source Trees tab and create a new Tree Tree variable by clicking the + button and filling in the columns. In both "Setup Name" and "Display Name", put [the name of the collaborative project that created the static library]. On the way, you put the full path in the frame folder.

Following these steps, a project that uses a static library must compile the same thing on its computer as it does on mine. But this is not so. Basically, he gets the error:

error: TheFrameworkHeader.h: No such file or directory

and then a line of other errors caused by the missing header.

Any strategies to fix this problem? Or someone who had a similar experience and could share some hard-earned knowledge? Is there something missing in the instructions that I have summarized? Do I need to set the title roles at the build stage of the copy headers when compiling a static library?

+5
source share
5 answers

, , - . , . . . , , , git. , , .

, , . : ! ( , .) .xcodeproject, , . , . ( ), .

- , !

EDIT: , , , .xcodeproject, .

+8

, Git, , xcode. , xcode/xcodebuild include ( ). xcconfig ( svn repo), - ​​. , thanx Git; -)

+2
0

: , (.. TheFrameWorkHeader.h) git? , , - git.

0

, " → " ( ) , Xcode ( ).

0

All Articles