Create HTML5 Vertical Endless Runner cross platform games

Using Phaser framework and other FREE software
Endless runner games are gaining more and more popularity and they are really easy to code.
I will take you by hand through the creation of a complete HTML5 vertical endless runner cross platform game with a lot of features and room for customization.
100 pages + 31 source code examples with a free update to come in a few days.

Creation of an iPhone App with Flash and without a Mac (for all Windows lovers)

Emanuele Feronato Actionscript 3, Flash, iOS

It seems you can’t call yourself a developer if you did not build at least one iPhone application. For most developers, the biggest problem of getting started with iPhone development is they don’t have a Mac. Windows based notebooks are a lot less expensive, and having both a Windows notebook and a MacBook is not for everyone.

Moreover, a lot of readers of this blog are skilled with Flash and ActionsScript3, but they don’t feel comfortable with Objective-C, the programming language used to create native iPhone applications.

Well, I am going to show you a step by step detailed guide to help you publishing an iPhone application just with your Windows computer, thanks to Flash Professional CS5.5.

This will be a very long tutorial but once finished, you will be able to create a Flash application and make it run on your iPhone as a native application.

1 – CREATING THE FLASH APPLICATION

This is the easiest part, as you only have to do what you are really used to do: create a Flash application. Just remember to select AIR for iOS. Leaving all settings with their default values, you will create a 320×480 pixels document, which is the size of the non-retina iPhone display.

We will start with something simple, with this script:

Where circleMc is just a small red circle. It’s quite obvious what this script is supposed to do: clicking (later: tapping) on the stage, you will move the circle under the mouse pointer (later: your finger).

Test the movie, and once you are sure everything works, it’s time to create the developer certificate

2 – APPLYING TO APPLE IOS DEVELOPER PROGRAM

If you never developed an iPhone application, probably you aren’t part of Apple iOS Developer Program, so you must enroll to it. This is a paid service which costs $99/year, or €79/year if you live in the Euro zone. Actually, the change is a bit unfair since the Euro certification may cost up to $10 more than the Dollar certification.

Anyway, everything starts from this page, click on Enroll Now and follow the steps filling forms with your information.

As you proceed with the enrollment, you will notice a warning:

“You must have an Intel-based Mac running Mac OS X Snow Leopard or later to develop Mac OS X and iOS apps for the App Store”.

Ignore it, as you won’t need any Mac.

According to Apple’s suggestions, if you intend to enroll in a paid Developer Program for business purposes, you may prefer to create a new Apple ID that is dedicated to your business transactions and used for accounting purposes with Apple, and your Apple ID is associated with an existing iTunes Connect account you should create a new Apple ID to avoid accounting and reporting issues.

They are right, I tried to upgrade my iTunes account, and my Developer certification was kept on hold because of some difference between my living and billing addresses, which is quite common if you work both at home and in a studio.

So I recommend to create a brand new account.

Once the (huge) process is done, you will finally see this screen:

Enter the activation code you should have received in your email after the purchase, and you are now an iPhone developer!!

In some cases, Apple will keep your certification on hold anyway, to ensure the (big) amount of data you entered is correct. It will be asked you to send a fax with a notarized copy of a government issued identification and wait “several working days” to get the certification. Before doing it, go to the contact page and send a form explaining you made everything right. In most cases, common sense will win and you will have your account approved in less than 24 hours.

3 – GETTING A DEVELOPMENT CERTIFICATE

Once you registered as developer, you need to acquire a Development Certificate, as well as register your Apple devices and applications.

Go to iOS Dev Center, log in and enter the iOS Provisioning Portal:

Then click on Certificates:

And since you are new to the iOS Provisioning Portal and don’t have any certificate, click on Request Certificate:

You will find yourself in front of a page where you are asked to choose a file and submit it to the page:

Don’t click anything at the moment, as you don’t have any file yet. We have to create it.

It’s time to play a bit with SSL protocols.

Go to the Win32 OpenSSL Installation Project and download and install both Win32 OpenSSL v1.0.0e Light and Microsoft Visual C++ 2008 Redistributable Package.

First install Microsoft’s package, then Win32 OpenSSL which will probably install in C:\OpenSSL-Win32 path. During this tutorial, I will refer to this path, but obviously you should change yours if different.

Open the command prompt window by entering cmd into Start-Run or through Start->All Programs->Accessories, and write:

Remember I am assuming OpenSSL has been installed on C:\OpenSSL-Win32. Anyway, access to bin folder inside your installation.

Once you’re in the bin folder, write:

To change the prompt from C:\OpenSSL-Win32\bin> to OpenSSL>.

If you get a warning you can’t open the config file, don’t worry at the moment. Write:

To generate a file called thekey.key in bin folder. Feel free to change the file name if you want. I’ll assume you will use the same filename I used. Then write:

Which will create a file called certificate.csr in bin folder. Just change thekey.key with your key filename, info@emanueleferonato.com with the email address you used during the registration, Emanuele Feronato with the name you used during the registration and IT with the country code of the Country you live in. -config "openssl.cfg" is necessary only if you previously got the warning you couldn’t open the config file.

This is how my command prompt window looked like once I’ve finished (sorry for the italian text, it’s a real example):

Finally you can upload the file .csr in the certificate page, and your certificate will be in Pending Issuance status.

Refresh in a couple of minutes, and your certificate will be issued! Download it (its name should be developer_identity.cer) and for the sake of simplicity save it in the same bin folder where you created the other files, as the process is not over.

Connect your iPhone to iTunes and get the UDID, you will find in the iPhone page and probably you will have to click on the series number in order to get it.

Return to the Provisioning Portal and click on Devices, then since you shouldn’t have any device installed, click on “Add Devices”.

Add a device name and the UDID you just got from iTunes, then click on “Submit”:

Your iPhone should be successfully registered now.

Time to register your app now. Go to App IDs page and click on New App ID.

You will be asked to enter a name, you will find a precompiled App ID prefix and you will be asked to enter the APP ID suffix. You can enter anything you want but you’d better follow Apple guidelines using the reverse domain name style. Click on “Submit”:

And now your App is registered.

One last effort and go to Provisioning to create a Development Provisioning Profile and click on “New Profile”:

Fill the form (it shouldn’t be hard at this time) and click on “Submit”

Your Provisioning Profile will appear in Pending mode:

And just like before, in a few minutes it will be Active. Download it (it should call Test_Profile.mobileprovision if you named the Provisioning Profile as Test Profile) and save it in your friend bin folder.

Open a new command prompt window, enter the old same

and

and from OpenSSL> prompt write:

to create a file called developer_identity.pem, then

to create an iphone_dev.p12 file. You will be asked for a password, enter it (and possibly, remember it).

This is how my prompt command window looked like:

Now finally we have everything we need.

4 – PUBLISHING WITH FLASH FOR IPHONE

Back to Flash Professional CS5.5, in your publish settings, add the certificate file, the password you entered before, the provisioning profile, and select the iOS development type as “Quick publishing for device testing”.

Publish the application. It will take up to some minutes, unlike regular Flash movies publishing. And finally the App is ready to be uploaded to your iPhone.

This should be the content of your Flash application folder: look at the iTest.ipa file. It’s your App!!!

Go to iTunes connect the iPhone, and install the provisioning profile, using File->Add To Library. Then, synchronize your iPhone to have it installed on it. To check if everything worked fine, in your iPhone select Settings->General->Profiles and look for your profile.

With the profile installed, add your application with File->Add To Library, and you will find it in your Sync Apps page:

Synchronize your iPhone again, and you will find the working application on your device:

Congratulations, you made it. Now, let’s port your Flash blockbusters on iPhone

From null to full HTML5 cross platform game

I will take you by hand from the bare bones of JavaScript programming through the creation of a full cross platform HTML5 game, with detailed explainations and source code.

If you don't know where to start, then From null to full HTML5 cross platform game is the book for you.

Comments 116

  1. Pingback: Link: Creation of an iPhone App with Flash and without a Mac (for all Windows lovers) | circlecube

  2. kek

    You forget something :)

    If you want to put your game/app on the Apple Store, you MUST do this from a Mac.
    It’s impossible to upload your .ipa file from windows.

  3. Post
    Author
  4. R3M1

    Kek have reason. For me, i had to buy a mac, intall it the developpe tool, lanch the application loader and send the app to send it to itunes if you want ot publish it.

  5. Jon

    Kek is right – it USED to be that you could upload your submission bundle through iTunes connect, however you now use the Application Loader app on the Mac (or there’s a bit in XCode 4 that does it for you).

    I suppose you can find a friend with a Mac and use their machine to do the upload otherwise Jailbreaking / Cydia is your only other option.

  6. Matthew Fabb

    Kek & R3M1, I’ve known a number of developers who have managed to run OSX in VMWare on Windows and have used that to submit their apps. So yes, you can still get away with developing and publishing an iOS app on a Windows machine without buying a Mac.

  7. Post
    Author
    Emanuele Feronato

    Yes Matthew, you can develop, debug and test your App under Windows, then run the OSX virtual machine JUST to submit the game.

  8. Post
    Author
  9. Pingback: Photon Storm » Blog Archive » Creation of a mobile App without the Flash IDE (for all FlashDevelop lovers)

  10. Pingback: Geek Daily » Create Iphone App My Own Iphone

  11. Pedro

    hi
    I have windows 7, I wonder how can I develop an application, because I read on the apple site that it is necessary to develop a program Xcode (it can only be used in Mac OS X).
    And now, what I do?

  12. Post
    Author
  13. renk

    I got this error(in Windows 7):

    OpenSSL> x509 -in developer_identity.cer -inform DER -out developer_identity.pem
    -outform PEM
    Error opening Certificate developer_identity.cer
    4164:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
    bss_file.c:392:fopen(‘developer_identity.cer’,’rb’)
    4164:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:39
    4:
    unable to load certificate
    error in x509

  14. plux

    Hei, i’m interesting on it
    but, how if we develop augmented reality flash game using flartoolkit and using webcam, can we substitute the webcam that we used with iphone camera ? and how about box 2d or flare3d ??

  15. Joe Dalton

    hi guys,

    hope you guys can solve my 2 issues:

    1. in case my project contain several external files swf/jpg/xml which are stored on a same place, will the created ipa work? same issues if my files & data are stored on another domain, is the ipa still work?

    2. I once used both flashdevelop and flash cs5 (separately) before to create an ipa, using box2D and build-in gesture events. The output is extremely low fps, was about less than 10 fps when I configured 30 fps. So is there any compatible problem to explain this issue?

    I am eager to create some IPAs, I even got a mac to learn XCode. Since coding as3 is my hobby & I have no much experience in C++, believe me, learning XCode is really a pain in ass!

    r,
    J

  16. Pingback: FlashDevelop4?AIR for iOS??????????? for Windows | alt

  17. EZ

    If anyone encountered the following error message: “unable to write ‘random state'”, try to run openssl.exe as administrator (Windows 7).

    For myself, everything went alright until I tried to sync my app (iTunes -> iPhone) and received the following error: “Failed to Install in iOS”…

    Did anyone get this error and was able to understand how to fix that?

  18. EZ

    Got it:
    I was trying to create a “generic” profile which I’ll be able to use for all of my iOS tests…
    Well – found out (silly me) that I have to create separate Provisioning Profile for each and every game / app / test…

  19. Tom

    Worked like a charm, thanks for that. However, I bought a Macbook recently, and now I’m having problems with getting my certificate (which I created on Windows) ported to OSX and working in Xcode. Do you have any idea?

  20. Post
    Author
  21. TNT

    @ plux
    augmented using Flash on iOS is possible but painfully slow…also box2d is very, very limited. I’ve been that road.
    The performance hit in augmented comes from the draw bitmap loop.
    It needs to check and call a setpixel function at 320×240 pixels a time and is still very, very slow.
    On top of that; drawing 3d will drop the framerate at 1…
    I don’t know if Air 3.1 has gained some performance boost but I doubt it. (unless somebody else can prove me wrong :-)
    I am now on xcode and is it actually easy, not that hard at all! :-)
    gamecenter, inapp stuff, box2d (100 bodies), 3d, augmented, tons of tutorials… ;-)

  22. Sir

    Great tutorial! Everything works fine except when I try to sync with my iPhone 4S. The icon for my test app appears on my iPhone screen in iTunes and as an app icon with a scrollbar that says “Installing” on my iPhone, then disappears after the sync. I thought that the issue might be that the “App ID:” in “AIR for iOS Settings” in Flash required the App ID Prefix that apple generates before the “com.emanueleferonato.helloiphone” format you show in your image, but that didn’t help.

    Does anyone have an idea what might cause this? I did create an apple id for development that is different from the apple id on my phone. Might that be the problem?

  23. Sir

    I figured I messed up somewhere so redid everything from scratch (thank you Apple for counting my re-registered device towards my total of 100 as if it were a new one), including deleting the provisioning profile from my phone and ipa file from iTunes. I’m no longer getting an error, but although in iTunes it appears that my test app is indeed installed and I get no error message, it does not show up on my phone. Argh.

  24. Sir

    Just a note that it’s possible that this tutorial needs to be updated to accomodate new requirements from Apple. I was able to gain access to a Mac and I can now install the test app just fine. I followed this tutorial word for word once then again from scratch and was never able to successfully install the app to my iPhone. I did notice that if I pull a certificate generated this way into Apple Keychain the option to export a key is not there. So that’s likely where the problem lies.

  25. TOM

    Hi Great tutorial but i had some problems,
    When i went in cmd i got to everything in the p12 part except the part where you have to enter a password. I tried to type anything in but nothing would happen. Please Help!!!!!!!!!!

  26. Pingback: Flash CS5.5 | phillipshakesbymasters

  27. PS

    We are facing a weird problem. We recently updated our account from developer to enterprise. Now, we have received a certificate and .p12 file from the systems’ department. When we try to publish with only these 2 in CS5.5, it invariably asks for the password. Upon contacting the systems department, they reverted back that if we need to get a .p12 with password, associated with the enterprise account, we need to get a CA signed certificate which costs $1200 a year, which is of course not a practical expense. All the more, on XCode, it allows publishing with a .p12 not having the password, what can we do to avoid this while publishing through Flash CS5.5?

    Any help regarding this would be highly appreciated.

    Thanks in advance.

  28. key_nyc

    My command window will not allow me to type the password in the final step. Mashing buttons sometimes unlocks but the re-entering of the password causes it again. can’t seem to get through it without throwing errors in the end
    Any thoughts?

  29. donnruss

    hey just figured it out about the password problem. when entering the password the prompt is not indexed forward …..just enter your password and press enter. then it will ask you to confirm password. just type in the same password and press enter. If done correctly then it will go back to the directory and no error message will be generated.
    let me know if you get this key_nyc

  30. KiranaTama

    This a great tutorial. if allowed by admin I want to make a video documentation for this tutorial and distributed to many people out there through social video networking.

    Thanks

  31. Pingback: Build an App for iPhone or iPad with FlashDevelop « Lorenzo Nuvoletta

  32. James

    Thanks, this information has been a life saver. To help others – these instructions work, HOWEVER you must follow it to the letter. It took me about 5 attempts until I achieved success. EZ’s comment on December 19 – proved invaluable.

  33. Alex

    So if we only have a PC we can not submit the games? Even though there is a submit to apple store button in flash cs5.5

  34. Felipe

    Hi, im new to programming stuff , but i want to make iphone games, and i only have mac.

    Question about the script.
    I tried putting it in the frame actionscript but nothing happens. i also made a circle instance name it to circleMc.

    Please let me know what i should do . thanks a lot !

  35. Rey

    So, I’ve managed to go through all the loops with registering as an iOS developer, certificates, devices, app ids, provisioning profiles, etc. I’ve downloaded the certificate and exported it as a p12 file, and downloaded the provisioning profile file. However, when I try to publish, I get the following error:

    Error creating files.

    The digital certificate is invalid.
    could not retreive certificate chain from keystore

    Any clues as to what’s going wrong? Thanks!

  36. Alex

    When I try to upload the certificate file I get a “We are unable to process your request” page. Anyone know what I could be the problem?

  37. Richard

    Hi Emmanuele

    Excellent tutorial. One problem – must be my fault! I get the following and also can’t find the developer_identity.cer file it refers to. Have I missed something?

    Cheers

    Richard

    OpenSSL> x509 -in developer_identity.cer -inform DER -out developer_identity.pem
    -outform PEM
    Error opening Certificate developer_identity.cer
    4164:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
    bss_file.c:392:fopen(‘developer_identity.cer’,’rb’)
    4164:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:39
    4:
    unable to load certificate
    error in x509

  38. Richard

    Hi Again

    Ok solved the problem with the certificate – missed a step earlier on.

    Almost there, but after entering the password I get ‘unable to write ‘random state’

    the iphone_dev file is in bin – but will it be usable? What caused the error?

    Cheers

    Richard

  39. Richard

    Hi again

    solved that one by opening a new command prompt and entering: set RANDFILE=.rnd then: cd \OpenSSL-Win32\bin’
    then: openssl
    and finally: pkcs12 -export -inkey thekey.key -in developer_identity.pem -out iphone_dev.p12

    Thanks again

    Richard

  40. Phillip Shakesby

    Hi I seem to have the same problem as richard (see below)

    OpenSSL> x509 -in developer_identity.cer -inform DER -out developer_identity.pem
    -outform PEM
    Error opening Certificate developer_identity.cer
    4164:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\
    bss_file.c:392:fopen(‘developer_identity.cer’,’rb’)
    4164:error:20074002:BIO routines:FILE_CTRL:system lib:.\crypto\bio\bss_file.c:39
    4:
    unable to load certificate
    error in x509

    But I cannot work out which step I must have missed pleas can you help

    Phill

  41. Richard

    Hi Phil

    Go back to ‘Refresh in a couple of minutes, and your certificate will be issued! Download it (its name should be developer_identity.cer) and for the sake of simplicity save it in the same bin folder where you created the other files, as the process is not over.’

    Cheers

  42. Pingback: Getting my application on my iPad | phillipshakesbymasters

  43. ron mizrachi

    thank you for tis it is the best !!!
    i am geting a this in my promt window:
    unabel to load certificat
    error in x509

  44. andrew

    I am also getting a 509 error. I get the cert generated no problem, but windows only allows me to save it in a store and I cant get it over to ssl. any thoughts?

  45. Alexis

    Hi there,
    For those with the “unable to write random state” in the last process of creating the p12 file, you just need to run the command prompt as administrator (right click on all-programs>accessories>command-prompt to run as admin).

    Thanks for this great tutorial !

  46. Pingback: Create and deploy Windows Flash authored apps to iPhone without using iTunes | FlashGrind

  47. Lauren

    I keep getting an error in the command promt that states “x509 is an invalid command”

    Any hints?

    Oh and what do I replace “developer_identity.cer” etc with? What is my developer identity?

    Cheers :-)

  48. Joe

    This step by step guide is excellent. Thank you.

    I’m getting stuck at the end of step 3. For some reason, when it prompts me to enter an export password suddenly i can’t input text into the command prompt window, the only button on my keyboard that works is “enter”.

    Do you have any idea why this is happening?

  49. Pingback: The roadmap wil… | Payman Rezania

  50. Pingback: Roadmap | Payman Rezania

  51. jason

    To those saying to run mac OSX as a vm on non-apple hardware this is a violation of the EULA and is therefore piracy. Apple can terminate all of your accounts including the one you just paid for and pursue criminal charges and civil damages.

  52. kevin

    Hi I’m a newbie, just want to ask and make sure if it is possible to build a flash based app and upload it in the app store using windows. Is there any tutorial on how to upload it using windows? thanks

  53. kevin

    Hi I’m a newbie, just want to ask and make sure if it is possible to build a flash based app and upload it in the app store using windows. Is there any tutorial on how to upload it using windows? thanks

  54. Jordan

    Hey when I upload the key to the provisioning portal it doesn’t do anything, just refreshes the page as if nothing was uploaded and says “No File Chosen” again :/

  55. Pingback: Packaging a Sencha Touch app for iOS using WIndows 7 « Alex Graham

  56. Lasse Hall

    excellent writing.
    I have been programming AS since 02/03 (Lingo long before that)
    so this is great reading for me. I have also made a number of AIR apps. So the idea to use AS3 as a platform for smartphone apps is compelling.

    I am trying to find articles on comparing Flash as a platform compared to C and Coco; pros and cons. The programs I make are typically small 2D storytelling games for fun and learning.
    Is there a great difference in in terms off processor, efficiency etc.

  57. Pingback: Packaging a Sencha Touch App for iOS using Windows 7. « Alex Graham

    1. Post
      Author
  58. Not Bob

    Is there absolutley no way at all to do it without having to pay for an account?? I am really annoyed at that. }:( to apple.

  59. Jason Eff

    Great article! I just got into thinks and im working with gamesalad because it is a pretty good program for new users to understand how the logic works ( defining attributes, applying physics, scenes etc).

    I was checking out corona but it seems a tad more difficult, needing to know lua and all. Worth starting with gamesalad and then moving to corona and remaking the app or going straight to lua?

  60. Bayo

    Thanks for the tutorial. Seems I’m late on but better late than never as they say :-). So, I’ve gone all the way to developing and even deploying to my device. The problem now is submitting to the app store since Apple requires the use of a MAC only run uploader. That’s bad ews for good ol’ Windows users like myself. The VMWare option seems tempting but I’ve read it’s a risky path. Specifically, I hear Apple requires the MAC License and the developer risks losing his license for violating Apple’s EULA. Anyone tried it? How’d you go about it? What’s the best bet or route to go?

  61. Pingback: Fehler beim Upload an Apple - Flashforum

  62. Pingback: Create Your First Mobile App with PhoneGap Build – Setup | Flippin' Awesome

  63. Mitch

    I’ve been trying to get my first app on the Apple store. I already installed and tested on an iPad using Flash cs6. When I tried uploading thru a service I get rejected because, I think, because of the APP ID. In your example you used the suffix of the APP Id in Flash. Is that correct? Why not the prefix? Also, when uploading to the App Store, when they ask for the APP ID, is that the whole thing with the prefix and suffix?… the prefix and the bundle ID? Very confusing. I hope someone has done this before. I’ve been using XP with Flash cs6. The problem is just getting the correct APP ID in flash and the correct APP ID in the App Store. These upload services want a APP ID. I’m not sure what they want. Any help, please. thanks

  64. Danielle

    For some reason all steps work for me but when i try to do final step it doesn’t ask for a password? It produces certificate but I cant use it in Flash because I dont know what the password is set to? Any idea?

  65. Justin

    Thank you for your tutorial. Tonight I was able to publish ad hoc to my ipad using flash cs6. Without your tutorial, it would have taken days (and maybe a week) instead of hours. The instructions were not clear anywhere. The one error I got was something like

    unable to write ‘random state’…

    and I typed in the cmd window:

    set RANDFILE=.rnd
    and everything worked.

    Thank you again…this was amazing.

    Justin (a fellow Italo Canadian)

  66. Keziah Naidoo

    Thanks so much. You are a STAR! Your step by step tutorial was an absolute life saver. I use to be a big apple fan but after having to develop and publish one to an apple device I am no longer a believer. ANDROID FOR THE WIN!

  67. Yitschak

    Here two .bat files for the certificates creation:

    “create ‘auto.key’ and ‘auto.csr’.bat”:
    :: Will create ‘auto.key’ and with it – creates ‘auto.csr’
    :: Just run the script

    @openssl genrsa -out auto.key 2048
    @openssl req -new -key auto.key -out auto.csr -subj “/emailAddress=ybeapps@gmail.com, CN=Yitschak Ben-Ezra, C=IL”
    @echo “PLEASE NOTE: Maybe ‘-config ‘openssl.cfg” is required. (if was an error at start)
    @pause

    “Create ‘p12′ From ‘auto.cer’.bat”:
    :: Put in this folder “auto.cer”
    :: Verify the existance of “auto.key”
    :: Run the script and type your password twice
    :: You will get “auto.p12″

    @openssl x509 -in auto.cer -inform DER -out auto.pem -outform PEM
    @openssl pkcs12 -export -inkey auto.key -in auto.pem -out auto.p12
    @pause

    GOOD LUCK!!

  68. Yitschak

    Here two .bat files for the certificates creation:

    “create ‘auto.key’ and ‘auto.csr’.bat”:
    :: Will create ‘auto.key’ and with it – creates ‘auto.csr’
    :: Just run the script

    @openssl genrsa -out auto.key 2048
    @openssl req -new -key auto.key -out auto.csr -subj “/emailAddress=YourMail@gmail.com, CN=Your Full Name, C=IL”
    @echo “PLEASE NOTE: Maybe ‘-config ‘openssl.cfg” is required. (if was an error at start)
    @pause

    “Create ‘p12′ From ‘auto.cer’.bat”:
    :: Put in this folder “auto.cer”
    :: Verify the existance of “auto.key”
    :: Run the script and type your password twice
    :: You will get “auto.p12″

    @openssl x509 -in auto.cer -inform DER -out auto.pem -outform PEM
    @openssl pkcs12 -export -inkey auto.key -in auto.pem -out auto.p12
    @pause

    GOOD LUCK!!

    1. Post
      Author
  69. Tian Wang

    Hi,Emanuele

    I read your post with a great interesting.
    I have to make a game to be run on ios and android using flash and I have its flash work file(fla file). I’d like to ask you about it.

    Best regards. Looking forward to your reply.

    Tian

  70. XiaoXiao

    Hi, there
    I did as your steps and made an ipa and tried to sync it with ipod, but it was failed.

    Let me know why.

    Thanks

  71. Andrey

    Oh, guys please help, I stuck on the last step:
    OpenSSL> pkcs12 -export -inkey thekey.key -in ios_development.pem -out iphone_dev.p12
    Loading ‘screen’ into random state – done
    No certificate matches private key
    error in pkcs12
    OpenSSL>

  72. Andrey

    Oh, I’ve got my mistake: I wrote renk’s message with the similar error (but another one) and his flash “oh sorry, skipped a step”, so I got back and repeat this command:
    genrsa -out thekey.key 2048
    As you can guess my key was rewrote so it became inmatched with my provision.
    I revoke my cert and repeat all the steps once again. So here’s my .p12 and I hope it works.
    Thank you very match:) for this tutorial! Wish you all the best!

  73. Graham

    Emanuele, thanks.

    I hope you can do a tutorial on getting Box2D optimized for iPhone in AS3->AIR 3.8.

    I am blown away by how slow it is compared to Android

    I have spent 160 hours trying to get this game to work on iPhone. It uses 1/10th the overhead of the Android version, but goes 30 times slower.

    What has iPhone done to AIR?

Leave a Reply

Your email address will not be published. Required fields are marked *