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

  • SEARCH
  • Home
  • 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 7595697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:44:04+00:00 2026-05-30T21:44:04+00:00

I had a working iOS project, and whilst working on a git branch, the

  • 0

I had a working iOS project, and whilst working on a git branch, the project would suddenly not load any resources from the main Bundle…I’m loading an audio file for a simple AVAudioPlayer with:

NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/nadamintrov1.aif", [[NSBundle mainBundle] resourcePath]]];
NSError *error;
NSLog(@"%@", url);
splashScreenAudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];

and in other ViewControllers I’m also loading other files such as:

    patch = [PdBase openFile:@"klangfarbe6ep.pd" path:[[NSBundle mainBundle] resourcePath]];
if (!patch) {
    NSLog(@"Failed to open patch!");
    // Gracefully handle failure...
}

but whilst both those worked just fine before, now I get “couldn’t initialise splash audio player” and for the patch:

open: /var/mobile/Applications/464B65AD-9E2C-42C9-8BBA-12AFD0D48393/Nadam.app/klangfarbe6ep.pd: No such file or directory

klangfarbe6ep.pd: No such file or directory
2012-02-26 12:07:17.332 Nadam[520:707] Failed to open patch!

which is weird…I mean the NSLog(@”%@”, url); I put up for the AudioPlayer clearly returns:

2012-02-26 12:06:49.127 Nadam[520:707] file://localhost/var/mobile/Applications/464B65AD-9E2C-42C9-8BBA-12AFD0D48393/Nadam.app/nadamintrov1.aif

so why on earth isn’t it loading it? Diff from git over the last few changes don’t show anything in the project file that I can see as corruption…

anyone had that happen to them before? any way of debugging it? I read this thread:

What is the alternative of [NSBundle mainBundle] URLForResource:withExtension: in iOS 3 SDK

But can’t understand why it was working before and not now with no project changes…

  • 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-30T21:44:05+00:00Added an answer on May 30, 2026 at 9:44 pm

    I don’t know exactly what is the issue here. But it is the most common problem. In two situations such issue occurs. 1. file path is wrong. 2.File is not included in bundle.
    After checking above file path shown by you I don’t think it is the issue of file path. But you can check your file is included in target or not. Just right click on your file and select get info. Where check in target your current target is selected or not.

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

Sidebar

Related Questions

I had a clean working directory and brought in a clone from a Git
I had a working solution using ASP.NET MVC Preview 3 (was upgraded from a
I had a problem with set not working in a batch file; it took
If you had a working product that was slow and memory hungry. What would
I've been working on a Java project for year. My code had been working
I'm working with a Core Data project in iOS 4.1 (targeting 3.1). When I
I am upgrading a project I had working previously. This code worked a few
I'm working on an iOS app and have had some trouble with getting photos
I've a bit of code which was working fine with iOS 4.3. I had
I had been working on a WPF project for a while, but haven't touched

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.