Just a quick note on getting a “No launchable executable present at path” error when trying to build and run the PhoneGap Demo project for the iPhone Simulator.
(Before you read on, why don’t you follow me at twitter?!)
Today one of our devs grabbed a fresh and clean copy of PhoneGap from GitHub, changed the Bundle Identifier accordingly, switched to the iPhone Simulator – 2.2.1 | Debug configuration and tried to Build & Go. This yielded a “No launchable executable present at path” for an executable named “Glass.app”. A quick search over at the PhoneGap Google Groups indicated that quite a few folks ran into this or similar issues.
I don’t exactly understand why the checked-in PhoneGap projects do not get at least some sort of quality assurance but maybe we’ve got to accept rocky paths if we opt for free lunch. My Google searches on this issue indicated that quite some devs turn away from PhoneGap because failing at “Getting Started” is probably the most frustrating experience.
I was able to resolve the issue by executing the following steps:
- Get a clean version of PhoneGap by running git clone git://github.com/sintaxi/phonegap.git in a Terminal session.
- Open PhoneGap.xcodeproj with Xcode.
- Open Info.plist and replace the com.sintaxi.phonegap Bundle Identifier with your own. Ours is com.grandcentrix.phonegap.
- Right-click the top most node named PhoneGap and select Get Info.
- Make sure that Configuration says All Configurations and Show says All Settings.
- Adjust Code Signing Identity, Any iPhone OS Device and Device – iPhone OS 2.1. I switched these from <Multiple values> to iPhone Developer.
- On the Build tab in Search in Build Settings type Product Name. In my project the product name was empty. Double click the empty value cell and enter PhoneGap. Close the Project Settings.
- Expand the node named Targets, right-click PhoneGap and select Get Info.
- On the Build tab again search for Product Name and enter PhoneGap. Mine had <Multiple values> here, too.
- From the Build menu select Clean All Targets.
- Make sure iPhone Simulator 2.2.1 is the active platform and Debug is the active build.
- Select Build and Go.
This worked for me. The PhoneGap application runs fine in the 2.2.1 Simulator and crashes shortly after launch if I build for the 3.0 Beta 5 Simulator (which is ok given the beta nature of Apple’s 3.0 SDK).
I have not yet tested to deploy the device.



















