Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:05:45+00:00 2026-05-23T12:05:45+00:00

I have some problems adding my shader-glsl files from one xcode project to another.

  • 0

I have some problems adding my shader-glsl files from one xcode project to another. I’m completely confused at this moment, since I can’t make a path to files I simply drag into xcode.
I have checked spelling, “show in finder” many times and still have the problem…

Here’s my example of files I added to xCode, I didn’t even put them into sub-directories to rule out any problems with those:
Screenshot

Now my code:

    NSLog(@"Filepath of Tools-image: %@",[[NSBundle mainBundle] pathForResource:@"tools" ofType:@"png"]);
    NSLog(@"Filepath of mo-tut is: %@",[[NSBundle mainBundle] pathForResource:@"mo" ofType:@"tut"]);
    NSLog(@"Filepath of FragShader-fsh is: %@",[[NSBundle mainBundle] pathForResource:@"fragshader" ofType:@"fsh"]);

At run-time I get this output:

2011-07-02 02:03:33.516 windowconfig[16192:707] Filepath of Tools-image: /var/mobile/Applications/BC82AD2C-B8B9-4751-80A2-31EC5ACEC9C2/windowconfig.app/tools.png
2011-07-02 02:03:33.526 windowconfig[16192:707] Filepath of mo-tut is: /var/mobile/Applications/BC82AD2C-B8B9-4751-80A2-31EC5ACEC9C2/windowconfig.app/mo.tut
2011-07-02 02:03:33.531 windowconfig[16192:707] Filepath of FragShader-fsh is: (null)

Please, does anyone have an idea on this?

EDIT: “tools.png” currently is an icon I use on a tab-bar, its in a subfolder in resources and was just a test for comparison. In case you guys wonder why I didn’t open the path to the other file in the screenshot.

EDIT2: I used “Clean” like crazy in the last two hours. “fragshader.fsh” appearently doesn’t get copied to the “windowconfig.app” bundle even though I added it to the project in the same way I added “mo.tut” and this one is in the bundle package. How can I ensure it gets copied?

EDIT3: Target Membership is checked in the Inspector for both files, still teh shader isn’t copied.

Solution:

Under Target-Build Phases the file wasn’t in the “copy files to bundle” list.
I manually added it, but still its strange it wasn’t added automatically after I added the file to the project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:05:46+00:00Added an answer on May 23, 2026 at 12:05 pm

    Have you made sure that fragshader.fsh is in a copy files step? (i.e. made sure it’s actually present in the resulting app bundle).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started learning Erlang and am trying out some Project Euler problems
I am trying my first flex application. And have a problems adding data from
I have some problems with Miktex installed on Windows Vista Business SP1/32 bit. I
I have some problems on a site with the concurrent access to a list.
I am very new to C and I have some problems learning about pointers.
I have been having some problems trying to get my PHP running. When I
I have only installed Ruby1.9 on my machine. Have some kind of problems with
I'm trying to build my first generic list and have run into some problems.
Looking for some direction here as I'm running into some migration problems. We have
Here's my problem - I have some code like this: <mx:Canvas width=300 height=300> <mx:Button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.