Import an Xcode project inside another Xcode project

I imported an Xcode project inside another Xcode project. I dragged project B inside project A, as in How to call an Xcode project in another Xcode project .......?

Then I imported the class from project B to project A, so I could use the method, but I gave me the error ClassTemp.h file was not found.

From what I read, this should work. Do I need to do some configuration to work?

+6
source share
2 answers

Try adding the location of your other project to the Header Search Paths in the Build Settings of the main project.

+5
source

It worked for me

In lines β†’ Header Search Path β†’ Add Entry Below

$(SRCROOT) and mark it as recursive.

If the above does not work, you can also try the following path,

<path-of-other-project> and mark it as recursive.

Hope this helps you! (may require cleaning or restarting the workspace)

+1
source

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


All Articles