Xcode 3.1.2, header file not found

I am trying to create code that has dependencies with other header files that are not in the project directory. I have added paths to these header files in both HEADER_PATH and USER_PATH. However, I still see a build error. It says that the file was not found. I confirmed that the file exists in the path added to the header search path in the project settings.

How can I make sure that all of my header files referenced in the project are included and the paths are chosen by Xcode at compile time?

I tried copying all files to the project with no luck. This is the first time I use Xcode, so it is frustrating. I am a Linux guy and am convenient at creating files. Is there a Make file for xcode that I can modify to include the directories of the header files.

+3
source share
2 answers

You might want to check the order of the source files in the phases of your target build to make sure that your dependencies are compiled before the source files that reference them.

  • Select a project in the Project Navigator.
  • Choose your goal.
  • Click the Build Phases tab.
  • Click Compile Sources to expand the section.
  • Drag dependencies to the top of the list.
+3
source

, ? ? "" < > ?

, , , , , - Xcode, "build" - .

0

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


All Articles