Re: Launch failed with error code -2857
Re: Launch failed with error code -2857
- Subject: Re: Launch failed with error code -2857
- From: Chris Espinosa <email@hidden>
- Date: Thu, 16 Dec 2004 21:44:12 -0800
On Dec 16, 2004, at 7:45 PM, scott kaplan wrote:
I am trying to debug a shared library in project builder from a CFM project.
I followed the instructions exactly of the following article (http://lists.apple.com/archives/projectbuilder-users/2001/Feb/msg00210.html) which is reiterated verbatim below.
When I performed step 6), I got the error "Launch failed with error code -2857".
I have read every article in the project builder archives concerning how to solve my problem and the solution did not appear to be there.
My Mac is running OS 10.2.X
See Apple's tech note on this subject: http://developer.apple.com/carbon/tipsandtricks.html#CFMLaunchError
6. Why do I get "Launch failed with error code -2857" when launching from the Terminal?
There is a problem with the interaction between the Code Fragment Manager (CFM) and Core Foundation (CF) which causes LaunchCFMApp to sometimes fail when launched from the terminal (or gdb).
True, the error code means it can't find the 'cfrg' resource. This is because CF gets confused and thinks the application is "LaunchCFMApp" instead of your target bundle.
To work around the problem for the time being, define the environment variable "CFProcessPath" to be the full path to your executable. This will force CF to locate the correct "bundle" for your app. This should get you debugging again!
_______________________________________________
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