Re: App works when launched from Xcode, not from Finder
Re: App works when launched from Xcode, not from Finder
- Subject: Re: App works when launched from Xcode, not from Finder
- From: Kyle Sluder <email@hidden>
- Date: Tue, 15 Dec 2009 16:43:02 -0800
On Tue, Dec 15, 2009 at 4:34 PM, PCWiz <email@hidden> wrote:
> I don't know why this is happening. I don't think its an issue with my code if it works in Debug (Xcode & Finder) and Release (Xcode only).
Two rules of software development:
Rule 1: Check again. It's probably your fault.
Rule 2: It's still probably your fault.
> My build configurations for both Debug and Release are identical (I haven't checked thoroughly, but I know I didnt change much). Both configs are set to use the LLVM GCC 4.2 compiler, and GC is set to Required. The only other change I've made is adding a few header search paths.
When it comes to debugging, there is no such thing as "not checking
thoroughly." There is only "Checking thoroughly" and "not checking at
all." "Checking thoroughly" means proving (not convincing, but
actually sitting down with a backtraces, a debugger, and even
single-stepping through your source code if necessary) that your
program is behaving as designed.
So, run your release-built app from inside gdb (yes, you can run a
non-debug app inside a debugger). When it does something wrong, trap
that error in the debugger and figure out what happened. Then fix
your bug. Rinse, repeat.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden