I have written a win32 app to compile your swf for iOS using AIR 2.6.
It basically is a replacement for the iPhone settings in CS5.
It means you don't have to use the command line ADT or compile scripts, and it writes the app descriptor XML for you.
It is not quite ready yet (it works, but I haven't implemented launch screens yet).
If there is interest from people here I will finish it and make it available for free.
Android support is on the way too.
No Mac version unfortunately.
Cool. Am working to complete it. I think I'll release it before it is finished, and release updates as I go.
It is written in Delphi 6 as that is what I have. If anybody has Delphi for Mac and is willing to port the code, let me know and i'll send you the source. Unfortunately I've used a bit of platform dependent code for file IO, but it shouldn't be too hard to replace.
As updates become available I will edit the original post.
Until Pea will publish his tool, you can download a similar tool that I have created at my work place.
(Cheers for them, allowing me to share it with you guys!)
inside there's an sfx rar file that extracts its files [bin+templates] to a temporary folder and runs from there, so no install is needed.
you can open the .exe file using winrar and edit the templates it you want.
I've forgot to mention a small but important thing!
inside the .exe archive there are 2 template files, one for the xml and a second for the bat (batch) file.
you'll need to edit them so they'll point to the correct paths:
to to so, right click on the CreateIPA.exe [after you've extracted it from the zip file] and select "Open with Winrar" (yes, you should have winrar installed to do so...). you will then see the 3 files that are inside the exe archive.
in template.xml, you should only edit the <copyright> tag.
in template.bat, you'll need to edit:
1. the path to the AIR sdk\adt [...\AdobeAIRSDK2.6\bin\adt]
2. the path to the certificate and its password (the values after -keystore and -storepass).
after you've edited them, you can put them back to the exe archive (again, using winrar), or simply place all 3 files in the same folder (the CompileIPA.exe and the 2 templates).
if you guy's will find this to complicated (you shouldn't), I'll upload a more user-edit friendly version tomorrow.
and again, the file structure is:
but you can extract the 3 files to some folder and run them from there.
That is fantastic work, BarakHarel
My tool can be found here: http://www.pixelthismobile.com/blog/3/04/2011/adt-helper-tool
Unfortunately I am unable to edit the original post with the updated details.
ADTHelper works very similar to BarakHarels tool, but is perhaps a little more polished (sorry BarakHarel, no offence intended). For example:
- You can set all options (like your AIR directory) by browsing for them
- Image previews for icons and launch screens
- Auto-create/resize all icons from a single 512 pixel icon
- Auto-incrementing build number
- Advanced options (Status bar style, Display res, etc)
- Unzip to a folder
- Run the exe (no need to install)
- Browse for your AIR directory
- Like the tool in CS5, browse for all your other required files and select your options
- Hit [Compile for iOS]
- A new folder is created next to your swf
- All icons, images, swf and otehr files are copies here
- Once the ADT finishes, the IPA is also here
There are still some problems I am working on. Here is a list of unsupported features that are coming soon!
- Launch screens aren't working 100% yet
- URL schemes not implemented yet
- Debug IP not supported yet
- Capabiliy limiting (WiFi, GPS, Front-facing camera etc) not yet implemented
- Android support coming soon
This looks really good but I think I am missing something. I keep getting the following error when it tries to run the build.bat file.
'adt' is not reconized as a command.
Any ideas of what mistakes I'm making?
Hi magro01 - you aren't making any mistakes. It looks like a 'path' error - the OS can't find the ADT because it isn't in the path environmental variable. I'll update the app to fix this, but in the meantime you may have to add it manually.
you'll need to add the path to the AIR SDK bin directory manually.
or you could just wait for me to release a fix
Cool - just updated the app to fix the ADT problem - let me know if it works ok for you now. Also fixed launch images and they seem to be working for me now. They aren't saved between sessions though (that's coming next).
Cool tool! But in my 64bit system, I have to manually change the command to
"C:\Program Files (x86)\Java\jre6\bin\java" -jar "I:\Software\Adobe\AdobeAIRSDK2.6\lib\adt.jar" ...
If you can add the support for 64bit system, it would be much prettier.
Thanks Pekingman. Will add support for that. Do you know if it is only 64 bit systems, or what are the conditions to use this command instead?
Have also just updated the app to support capabilities, and a few other fixes (such as 'Exit on suspend').
It used 64bit Java virtual machine. Then, in the virtual machine, package the swf file by adt.jar.
u can find it at the AIR 2.6 SDK folder:
Of cause, you should install Java Runtime 64bit first in your system.
I've added the ability to deploy using Java. When you launch the app, go to the 'Settings' tab and check 'Use Java' and browse for your Java directory.
I have also fixed remote debugging, allowing you to specify a remote host, or a port for USB debugging.
Of course you will need the latest version of the tool:
Hi Pea. Thanks for the tool. I'm running it but no ipa is created, any thoughts?
the log from your tool states the following:
Deploying for iOS
check AIR SDK path: ok
check swf path: ok
check password specified: ok
creating output folder (XXX)
creating app descriptor XML
Could you run the batch file manually and tell; me the error? To do that:
1) Open the start menu and type 'cmd' (without quotes) to open a dos window
2) Find the bat file (should be in an 'ios' subfolder next to your swf)
3) Right click and select 'properties'. Copy the 'Location' field (path to the bat file)
4) in the CMD window, type 'CD' followed by a space and then paste the location (right-click, paste), and hit enter
5) now type 'build.bat' and hit enter
Now wauit for the error message and let me know what it is.
By the way - what OS are you using?
Ah I see -
I will put some more instructions in my app on how to set up your system. It is not enough to just have the Adobe AIR SDK installed, you also need the latest version of the Java JRE (Run Time Environment). This is not a requirement of my tool - this is actually part of how AIR works. This from the Adobe docs on installing AIR 2.6 SDK:
The AIR command-line tools require Java to be installed your computer. You can use the Java virtual machine from either the JRE or the JDK (version 1.5 or newer). The Java JRE and the Java JDK are available at http://java.sun.com/.
You can download it here: http://java.com/en/download/index.jsp
No problem touchgen.
A small update to make the 'high resolution' option more obvious (for retina displays).
Next I will be adding support for files (at the moment it only handles launch images, but I will be adding support for any other files)
Well, just like the error message says - your app ID has an invalid value. I am guessing that you have left the asterisk (*) in it?
This is on the: iOS > Deplyment tab of the tool
My tool reads your ID mask out of your provisioning profile (for example mine is com.pixelthismobile.*) and you will need to replace the asterisk with your actual app ID (e.g. com.pixelthismobile.myGameName)
Europe, Middle East and Africa