Re: Launching Cocoa Application externally
Re: Launching Cocoa Application externally
- Subject: Re: Launching Cocoa Application externally
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 14 May 2008 16:20:18 +0200
You can read the crash log to see what goes wrong. (/Applications/
Utilities/Console.app)
Le 14 mai 08 à 15:48, Yann Disser a écrit :
When I launch my Cocoa application from Finder instead of from
within XCode, it reports a crash. All my other Projects seem to work
well from outside XCode...
I tried to debug my App by changing the main-function to
int main(int argc, char *argv[])
{
[[NSString stringWithString:@"hier"] writeToFile:@"debug.txt"
atomically:YES];
exit(0);
return NSApplicationMain(argc, (const char **) argv);
}
From within XCode this writes the file "debug.txt". From Finder it
doesn't. The same behaviour occurs with my other apps.
How can I debug my App from Finder (or Terminal) to see where it
crashes? (printf("hallo\n") doesn't work either)
Maybe someone has an idea why my App crashes when launches from
Finder/Terminal and runs perfectly from within XCode?
Thanks,
Yann
_______________________________________________
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
_______________________________________________
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