By combining all of the above entries together, I decided to solve my problem:
1) Make sure all files are in the same folder. This may seem obvious, but my Box2D files were not in the same folder as my other code. When you create a new project using Xcode, it creates a folder with the name of your project, and then another folder inside the one that again has the name of the project. Example: "{project path] / TempProject / TempProject". I had Box2D files in the first TempProject directory, and not with the rest of the code that is being created in the TempProject subdirectory.
2) Open your project settings by double-clicking your project in Xcode
3) Scroll down to Search Path
4) Edit the value for “Header Search Paths”: $ {SOURCE_ROOT} / $ {PROJECT_NAME} / ** (Note: If your Xcode does NOT create a subdirectory like my, this is “TempProject / TempProject”, then just use $ {SOURCE_ROOT} / **)
5) Delete your Derived Data project by doing one of the following two methods:
a) Open Organizer → Select projects → Select project → Select Delete next to the project’s derived data
b) Open Finder → Choose Go from the toolbar → enter “~ / Library / Developer / Xcode / DerivedData” → Find and delete the desired project folder
6) Restart Xcode
7) Clear and rebuild code
8) Now the meaning of the code should work!
Chris source share