Header trouble in Xcode

First of all, happy new year!

Now for my question. I've built the dynamic library in Xcode and copied it to my project folder, as well as the Box2D.h file. However, when I try to include Box2D.h in my code the compiler complains about it missing the other Box2D headers. I'd add the headers manually, but all of the include paths are hard-coded to match the paths in the distribution folder, which may make things look a little odd if I just move everything to my project folder. Is there a standard procedure for using Box2D in an Xcode project?
I'm still new too, but from what I gathered, it's better to link to external header files, then to copy them to your project folder. For exactly the reason that the relative paths get messed up.

To link to header files you can make a new build phase, like this:
Image

Add the box2d.h file to this build phase, and when building your project xcode should know where to find the header file. I'm not sure if this is THE way, but it works for me 🙂

Good luck!

Original thread: https://box2d.org/forum/viewtopic.php?t=248