If you’re using a Mac and trying to build AIR applications with the following:
- Mac
- AIR 1.5.1
- Flex Builder 3.0.2.214193
- Flex SDK 3.3
You won’t be able to Run or Debug from Flex Builder and you won’t really get an error explainging why…here’s a list of instructions from the logged bug on Adobe’s Flex Bug and Issue Management System: http://bugs.adobe.com/jira/browse/SDK-19707
NOTE: If you just go to run the AIR app with this setup it’ll silently fail…if you try to debug it you’ll get the following: “DEBUG: error dialog with text: “Process terminated without establishing connection to debugger. If the program is already running, close it before attempting to debug.
To fix it, follow these steps:
- Download the attached change.sh.
- Copy the change.sh into the root directory of the SDK, at the same level of the ant, asdoc, bin, frameworks, lib, etc. folders. This probably looks something like: “/Applications/Adobe Flex Builder 3.0.2 Plugin-in/Adobe Flex Builder 3 Plug-in/sdks/3.3″ or wherever you keep your Flex SDKs…
- Change the script to executable (chmod 755 change.sh) — open up terminal and cd to the directory where you just put the change.sh file and run the command in bold: chmod 755 change.sh
- Run the script (./change.sh) run the bold command in terminal to execute the script: ./change.sh
- Open up FB and create a HelloWorld AIR app and make sure the SDK for Flex 3.3 is selected for this project.
- Run the AIR app and make sure it opens.
Big thanks to Joann Chuang Anderson for this fix, as it was driving me nuts!
#1 by Godstroke - November 29th, 2009 at 17:42
Thanks!
#2 by Andrea - April 21st, 2010 at 04:44
Thanks, this worked for me using 3.4.0
#3 by Pawel - October 5th, 2010 at 14:38
You’re star man! Thank you so much!
#4 by Pete - February 17th, 2011 at 12:56
Yup, worked for me with 3.6.16736 nightly. I copied it from a windows box to a mac and it was broke until I did this. Most grateful