• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: App give s -35 error when run out of the debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App give s -35 error when run out of the debugger


  • Subject: Re: App give s -35 error when run out of the debugger
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 13 Nov 2012 09:31:19 -0800

On Nov 13, 2012, at 8:00 AM, Jason T. Slack-Moehrle <email@hidden> wrote:

> The app is being run from the same place as it is build. The Debugger launches from this same location, no? So it works when run in the debugger, not when run outside like Finder/command-line.

Don’t rely on the state of the current directory when your app launches. As you’ve seen, it’s different when run from Xcode vs. when launched, and I don’t even think it’s guaranteed to be anything specific when the app is launched. (One way to troubleshoot such dependencies is to tell Xcode to change the current directory your app launches with; you can set this in the Executable editor in Xcode 3.)

Therefore if you use relative paths in your app, as you do, you have to first set the current directory to the value your paths expect. To do that you have to get the absolute path of the app — you said you’re using Carbon, so I can’t help you there, but look at the CFBundle API.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >App give s -35 error when run out of the debugger (From: "Jason T. Slack-Moehrle" <email@hidden>)
 >Re: App give s -35 error when run out of the debugger (From: "Jason T. Slack-Moehrle" <email@hidden>)
 >Re: App give s -35 error when run out of the debugger (From: Fritz Anderson <email@hidden>)
 >Re: App give s -35 error when run out of the debugger (From: "Jason T. Slack-Moehrle" <email@hidden>)

  • Prev by Date: Re: App give s -35 error when run out of the debugger
  • Next by Date: Re: Editor splits
  • Previous by thread: Re: App give s -35 error when run out of the debugger
  • Next by thread: Re: App give s -35 error when run out of the debugger
  • Index(es):
    • Date
    • Thread