• 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: "No launchable executable present at path" error - Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "No launchable executable present at path" error - Xcode


  • Subject: Re: "No launchable executable present at path" error - Xcode
  • From: "Roni Music" <email@hidden>
  • Date: Mon, 29 Jun 2009 09:36:26 +0200


----- Original Message ----- From: "Christopher Friesen" <email@hidden>
To: "Roni Music" <email@hidden>
Cc: "XCode Users" <email@hidden>
Sent: Monday, June 29, 2009 7:32 AM
Subject: Re: "No launchable executable present at path" error - Xcode



The launch system takes the executable and path from the active executable, not the active build configuration.

Yes, but why is the executable and path wrong when one start a project and by selecting another configuration, then selecting back to the first, then it's correct?

To me this is a bug, it shouldn't work that way and didn't with Xcode 3.1.2
or earlier.

For the bug report, I created the most simple default iPhone project
containg two configurations, release and debug.
I then duplicated the release config, only changing the app name (and the
plist file).
I now have three configurations. I select the first config and close the
project.

I now open the project and the first configuration is the active one (as it
should be).
In "Groups & Files" I expand "Executable" and select the item available,
"Get info" on that and it show the app name for the third configuration.
I now switch to the second configuration, then switch back to the first and
"voila",
the app name is now correct. Note I didn't even switch between config 1 and
3.

If this isn't a bug then I must be missing something important.

Anyway, filed a bug report and the attached project illustrates the problem
exactly

Rolf








-Chris

On Jun 26, 2009, at 8:15 AM, Roni Music wrote:

I can duplicate this error when building a simple test project with three configarations,
where the third configuration has another application name.


Looks as a bug to me so I filled a bug report

Radar Bug ID# 7010542



"No launchable executable present at path" error - Xcode

I knew I'd seen that somewhere before, but couldn't remember why, what fixed it, or even what project it was in. But just now I made it happen again, by accident, and by mucking around, made it happen yet again.


I have one target only but four build configurations ...
The first three build configurations have the same application  name -
asd.app
The fourth build configuration - "lite distribution" - has another  app
name - asdlite.app


My project seems similar: one target; three build configurations. One
config is for Ad Hoc distribution to testers, who like to see a
version number appended to the app name. Incrementing it could be
automated (this was even discussed again on the list a few days ago)
but I've just been lazily editing the Ad Hoc config's "Product Name"
along with Bundle version Info.plist when a new test version goes  out.

Info.plist contains ${PRODUCT_NAME} and ${EXECUTABLE_NAME}, the
single edit goes into the right places, and well, that's automagic
enough for me, for the moment.

Xcode seems to get confused, though, if you do this:

Active SDK: Device (it's on 3.0  now, but I know it was on 2.x when
this last happened weeks ago)
Clean & Build Ad Hoc config
Edit "Product Name", same config
Build & Go - launches on device
Switch to Debug config
Build & Go - get error "No launchable executable present at path"
Clean
Build & Go - get error "No launchable executable present at path"
Build Results reads:

Building target "AppName" of project "AppName" with configuration
"Debug"

Checking Dependencies
<ends>
Switch back to Ad Hoc config
Clean
Build
Switch to Debug config
Build & Go - launches OK on device


This is a minor problem since it only appears when first opening
the project
but to me it looks as a bug, or?

Seems so. After the first accident, I tried it again several times. Couldn't always happen make it happen, but did get it to recur.

Also noticed (once), in the status bar in Xcode window, something funny:

With:
Ad Hoc config Product Name: < AppName >nnn
Debug config Product name: < AppName >

Edit Ad Hoc Product Name to < AppName >nnn+1
Switch to Debug config (whose Product Name is < AppName >)
Build & Go -
-- Xcode status in lower left reads "starting debugserver with <
AppName >nnn+1 on iPhoneFoo"
-- (note that's the wrong app name
-- After a long pause (10-15 seconds) the status display switched to
-- "starting debugserver with < AppName > on iPhoneFoo" (correct
Product Name for Debug config)
-- and stayed there. The app didn't launch on the device, but neither
was Xcode frozen.
Finally clicked Stop button, status bar changed to "Debugging
terminated"


Maybe I'm (mis)using Product Name and should do something differently, but there does seem to be some oddness or other if Product Name differs in different configs...




_______________________________________________
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



_______________________________________________ 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: 
 >RE: "No launchable executable present at path" error - Xcode (From: "Roni Music" <email@hidden>)
 >Re: "No launchable executable present at path" error - Xcode (From: Christopher Friesen <email@hidden>)

  • Prev by Date: Re: Updating a Build Number
  • Next by Date: Jailbreaking concerns
  • Previous by thread: Re: "No launchable executable present at path" error - Xcode
  • Next by thread: Running my IPhone App from Simulator to IPhone
  • Index(es):
    • Date
    • Thread