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 6709779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:55:21+00:00 2026-05-26T07:55:21+00:00

I hav an app that i just did an update on and uploaded, everything

  • 0

I hav an app that i just did an update on and uploaded, everything worked great in the simulator and when testing on the device. However, when downloading from appstor it crashes in a specific situation.

I started a thread on finding the problem here: My app crash after downloading it from appstore now i need to solve this problem

The problem seems to be the following:

10  CoreFoundation  0x3614f4c4 +[NSException raise:format:] + 28
11  Foundation      0x34514e28 -[NSURL(NSURL) initFileURLWithPath:isDirectory:] + 68

However, the challenge is that i do not use “initFileURLWithPath” in my program so i do not know what to look for. I am looking at all the inits etc. but do not find anything that looks as a problem.

The things i changed from the previous version is:

  • New background graphics, added via xcode
  • A new quick game feature, which consist of a new button and a few new functions. I have checked them all.

The real issue here is how to find this as it is only when downloading from appstore it is a problem. BTW, i know that it crashes when i press the “wrong” button in my quizapp. That is good but i can still not figure out what is wrong.

Anyone that can give me some hints how to proceed with this weird problem and also explain how come something works perfectly on test device but not from appstore? BTW, how should i test this?

Thanks in advance 🙂

====================================================================

I think i have found the problem. As i new when the crash occurred i checked that module and found something interesting. I then tested, on a live device, turning of the sound and the problem was gone. Turning on the sound resulted in a crash.

The code is:

if (sound == YES) {
    //==== PLAY THE LOOSING SOUND ====//
    // Form a URL to the sound file, which in init using the Path
    NSBundle *mainBundle = [NSBundle mainBundle];
    NSString *filePath = [mainBundle pathForResource:@"wrong2" ofType:@"wav"];
    NSURL *aFileURL = [NSURL fileURLWithPath:filePath isDirectory:NO];

    // Create a sound ID, 
    SystemSoundID myID;
    // Register the sound
    AudioServicesCreateSystemSoundID((CFURLRef)aFileURL, &myID) ;
    // Play the sound!
    AudioServicesPlaySystemSound(myID);
}

The code line is:

NSString *filePath = [mainBundle pathForResource:@"wrong2" ofType:@"wav"];

What i do not understand is that the “wrong2.wav” exists in the resource folder but is still a problem?

====================================================

I just found that the “wrong2.wav” file was not present in the correct directory but still looked like it was correct in xcode4. I have copied a new version of the file to the correct directory, deleted the file in xcode and recopied it into xcode again.

Just do not know how to test.

=====Problem solved=======
The problem was that i had imported the wav file from another directory rather than the one where the app was present in.

  • 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-26T07:55:22+00:00Added an answer on May 26, 2026 at 7:55 am

    You may not be directly calling [initFileURLWithPath:] but are you loading files anywhere in your app using other method calls might be calling that ([UIImage imageNamed:] for example)? If that is the case, explore your compiled Release IPA (Right-Click, Explore package) and verify all the files you think should be there actually are.

    If you are downloading files onto the device to be opened, verify that they are actually being downloaded from the server (perhaps the sim & your device are caching something).


    One thing to keep in mind is that folders/groups in Xcode doesn’t necessary reflect the folder structure of the project on your hard drive. Copy a an item into a Group in Xcode doesn’t copy it to that folder.

    Also, during the compile the entire folder hierarchy gets flattened, so in the MainBundle everything in the root (no folders), so keep that in mind when developing.

    As for testing, have you tried completely removing the app from your device (and resetting the simulator) and re-adding it? When deploying, Xcode likes to take shortcuts and caches a lot of things so cleaning it out every now and then is a good thing.

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

Sidebar

Related Questions

I am testing Security environnement within Symfony2 and hav problem with log out process
Suppose that I hav two git branches; branch_one and branch_two . If I merge
I'm developing an android app for 2.2 ver. My app must hav such structure:
In my app i hav 4 views, i want to hide the navigation bar
i hav a database that contains spanish characters. to populate the database i am
I hate ta ask the same question that seems to hav been asked so
I hav an existing android app in version 1.5 . I have to make
I hav used uigraphics cgcontext to draw line on touch...but my line is not
hi i hav a code like this in the end i m getting error
If using subsonic, i know you hav to close a datareader. but what if

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.