Build iPhone iOS Apps Using Flex Hero and Flash Builder Burrito
**Editor’s Note: I have a jailbroken iPhone, which makes installing custom IPA files incredibly easy in comparison to those of you still imprisoned by Apple. If you have a legitimate Apple Dev Cert. you should be able to just drag and drop your IPA into iTunes and sync- but I am free of Apple’s chains, so I haven’t tested this and can’t promise you anything.
If you are jailbroken, you have nothing to fear and are ready to rock and roll. For information on jailbreaking iOS 4.2 to make your life easier and your iOS awesomer click here**
Everyone is excited about Adobe’s new Flex Hero SDK, the first Flex SDK to truly enable mobile application development using the Flex framework. And then you read that it only allows you to build native applications for android, and you grimace, and move on. At least that’s what Adobe tells you. I’m here to tell you that with a little know-how, and some command-line fu, you can indeed built Flex mobile applications for the iPhone- right now.
First you’ll need to equip yourself. To complete this you need to download the Flex Hero 4.5 SDK, Flash Builder Burrito, and the Adobe Packager for iPhone.
Download: Flash Builder Burrito Preview Release [includes Flex Hero SDK bundled]
Download: Adobe Package for iPhone Preview 2
This walkthrough is going to be extremely basic. I’ll show you how to get a simple Flex Mobile app onto your iphone, and then it’s up to you to build on these concepts.
Open up Flash Builder Burrito and create a new mobile project, add a simple button to the main application just so you can know that everything is working. Save and exit. Now fire up a command line/terminal. What you need to do now is use the Flex mxmlc command line compiler to create a swf file from you MXML application which is compatible with the Packager for iPhone- Flash Builder Burrito will not do this by default because it uses the AIR2.5 namespace, that’s why you need to use the command line. After you generate a SWF file, you will use the Package for iPhone to create a .IPA file that you can drop onto your phone. Presto changeo- Flex Mobile application on iPhone!
There are a few catches to all of this, so keep reading. To generate IPA iphone application files using Packager for iPhone you need 2 things- an XML application descriptor file, and an Apple Developer Security Certificate.
The first part is easy, create a file – I called mine dl3_mobile-app.xml. This file tells the packager for iPhone a few things, namely stuff about icons, splash screens, and the like. Here is my application descriptor file for reference:
The second problem is the whole Apple Developer certificate issue. The problem is, those cost money- and most likely you just want to see your Flex App running on an iPhone, so why would you spend $100 to see that? Amirite? Right. So check out this nifty walkthrough on how to get a Fake Apple Developer cert so you can keep moving forward with this whole shibang – you may need to create an account to download the necessary files, but it’s free and they won’t spam ya:
How to use Adobe’s iPhone Packager without an Apple Developer Subscription
Ok now we’re set. So now we just need to compile the swf from the command line, and then package it up for iPhone. Here are the 2 commands respectively to accomplish all that:
After the first command is run you should have a SWF file, and after the second one is run [it will take a few minutes to complete, be patient!] you should have an IPA file – this is a native iPhone application! Boomshakalaka!
All done! Now you just need to copy the IPA file to your iPhone and install it! I’ll leave that part to you to figure out, but it’s really easy- just Google it.
That’s it! Shout out to the EverythingFlex Blog for helping me figure this all out.
Remember you technically shouldn’t be able to do this [Flex on iPhone] so don’t be shocked when performance is… subpar. For more helpful links on getting the jump on developing for mobile using Flex Hero, and compiling for iPhone using the Packager for iPhone, checkout these links:
Also checkout more of my SniptBox on Snipt.org.



