How to access the header file of subprojects in the main project

I have one main project and another project that is being added as subprojects. I want to access the header file, which is defined in the subproject in the main projects, but, unfortunately, it says that the file does not find an error.

Look at the attached image. What should I change to access the subproject header files?

enter image description here

+4
source share
1 answer

You will need to add the subproject path to the search path for headers in the main project to read how to do this, check this Adding the system header search path to Xcode

+7
source

All Articles