1

I am working on an ios 6.1 application, that uses cocos3d, i have a file that is certainly in the bundle, which is 'CC3TexturableMaterial.vsh', but at a point in time when the applications needs that file, it crashes and shows the following error:

[***ERROR***] Could not load GLSL file '/Users/macbook/Library/Application Support/iPhone Simulator/6.1/Applications/3505ADEC-C70B-490F-9011-A433D85C2D66/3D.app/CC3TexturableMaterial.vsh' because it could not be found

Which implies that the file is not in the simulator's .app. does anyone encountered a similar problem?

2
  • 1
    Have you checked the build settings to ensure that the file is being copied across? (It's under Build Phases -> Copy Bundle Resources.) Commented Jul 16, 2013 at 9:15
  • Foolishly i put it in the compile sources instead of the copy bundle. Thanks, if you could put it in an answer so i can accept it. Commented Jul 16, 2013 at 9:28

3 Answers 3

7

This can happen when the file isn't explicitly being copied to the bundle.

To check this, ensure that it appears within the "Build Phases" -> "Copy Bundle Resources" section within your project's build settings. (To view the main build settings, select "Project" -> "Target" from within the left hand pane).

2
  • Thanks! Here i had some orphaned files - after deleting the references in Build phases everything was fine
    – brainray
    Commented Jun 1, 2014 at 17:31
  • 1
    still working at 2022
    – nastassia
    Commented Sep 13, 2022 at 22:16
0

Just open terminal

pod deintegrate

and then

pod install
-1

Just Follow Below Step:

1)Select your project from the left panel.

2) Select the target and then select Build Phases

3) There you should fin a button called Add Build Phase (Bottom right side)

4) There will appear a box where you have to select the files (there's a little +sign). And be sure you selected Destination: Products directory

Build the project, run it and now it should work !!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.