Xcode run Box2D problem "file not found"?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Just tried the iOS exporter with fusion 2.5 for the first time today and got the following error when trying to run my app from Xcode:

    'Box2D/Collision/b2BroadPhase.h' file not found

    It stopped on the following line in Xcode: #include <Box2D/Collision/b2BroadPhase.h>
    This line is in file: Other Sources/Box2D/Collision/b2BroadPhase.cpp

    Anyone else had this or knows why this is?

    I'm using Xcode version 4.6.2, does the new exporter require version 5? (I cant use Xcode 5 cause my OSx is too old)

  • Make sure you have the very latest export module from the Owners Lounge and build it again.
    Then if you have an issue put in a bug report.

    I don't think you need Xcode 5 .... but with Apple they like to kill old versions so hopefully you can build for the current iOS versions.

    Please login to see this link.

  • Ok so I tried reinstalling the latest version of the iOS exporter and built my app again. I still get the same message when I try to compile in Xcode:

    'Box2D/Collision/b2BroadPhase.h' file not found

    Seems like a file for box2d is missing??

    As I mentioned I'm running Xcode 4.6.2 but still all the files should be there shouldnt they??

  • Can you check if the b2BroadPhase.h file actually exists in the 'Other Sources/Box2D/Collision/' group in XCode's project navigator?

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

  • Yes, in Xcode the file exists in "Other Sources/Box2D/Collision". In the file structure, the file is in folder "Classes/Box2D/Collision/".

    Strange, when I just tried again now it says the file "Box2D/Collision/b2Collision.h" is missing. But I can see the file in Xcode so it seems to be there.

    This error now occurs in "b2CollideCircle.cpp".

    Anders, is it ok if I PM you the mfa, I'd rather not make it public.

  • I actually reported this exact problem to the bug tracker some time ago.

    There are two ways to solve this:
    1) Make sure the complete path to your project has no spaces in it, or
    2) In Xcode, go into Targets > Search Paths and add quotes around the Header Search Paths and User Header Search Paths. Do this for both your project and the Box2D project.

    Either of those will fix your problem.

  • Ok, so I've tried removing and reinstallning xcode 2 times, it doesnt help with the problem.

    However, the method cgbartek mentioned does work, but only when putting quotes around the "header search path" and "user header search path" for both the project AND box2d.

    So maybe the problem is that the box2d path does not allow for spaces in its file paths?

  • Any chance you can try install XCode 5.0.2 and try again?
    Are there any reason you stick to XCode4?

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

  • I can't answer for SirEatAlot, but I've been sticking with XCode 4 since I use Synergy quite a bit and it does not have Mavericks support yet (and XCode 5 requires Mavericks).

    However, I think Apple requires all new projects be compiled with XCode 5 now, so I guess I'll just have to bite the bullet and find another KVM solution for my next project.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!