Search code examples
macoscocoaresourcesbundleshader

Resource not being bundled into app


I have shaders named basic_shader.vsh and basic_shader.fsh. I added both of these two files to the Copy Bundle Resources build phase. But they are not being copied into the bundle app. And they don't appear in the Log Navigator. Xcode builder effectively ignores them.

They are located into a directory outside the source directory. I don't know if that is relevant. The funny thing is that a png image also located outside the source directory is being copied inside the bundle. My app is a Mac OS X app using Cocoa.


Solution

  • I solved by adding into the Copy Files build phase (setting the destination to Resources) instead of the Copy Bundle Resources build phase... I don't know why it solves the problem as I don't really understand the problem, actually...

    Thanks anyway...