Hi all,
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.
Anyone interested?
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!)
http://rapidshare.com/files/457091918/CreateIPA.zip
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.
Enjoy.
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:
CreateIPA.zip ->
CreateIPA.exe ->
1. CompileIPA.exe
2. template.xml
3. template.bat
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)
Instructions:
- Download http://www.pixelthismobile.com/blog/3/04/2011/adt-helper-tool
- 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
Feedback welcome
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.
See:
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666a de46-7fd9.html
And:
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 ![]()
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)
copy XXXXXXXXX.swf
copy icons/icon29x29.png
copy icons/icon48x48.png
copy icons/icon57x57.png
copy icons/icon72x72.png
copy icons/icon512x512.png
copy Default-Portrait~ipad.png
creating app descriptor XML
save XXXXXXXXX-app.xml
create build.bat
run build.bat
thanks
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:
http://help.adobe.com/en_US/air/build/WS2d8d13466044a7337d7adee0124069 59c52-8000.html
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
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)
North America
Europe, Middle East and Africa
Asia Pacific