Click here to Skip to main content
Click here to Skip to main content

Configuring Flash Builder 4.5 for iOS Development

, 20 Aug 2011
Rate this:
Please Sign up or sign in to vote.
How to configure Flash Builder 4.5 for iOS Development

Introduction

In this post, the steps for configuring Flash Builder 4.5 for iOs development have been outlined.

Install OpenSSL

Create Private Key

  • Open Command Prompt
  • CD to C:\OpenSSL-Win32\Bin\
  • Type "openssl genrsa -out C:\Temp\Khattab.key 2048"
image001.png

NOTE: If you get an error message saying: “unable to write ‘random state’”, you need to set the RANDFILE environment variable” as shown in the below screenshot:

Set RANDFILE=.rnd 
image003.png

Create CSR File

  • Open Command Prompt
  • CD to C:\OpenSSL-Win32\Bin\
  • Type " openssl req -new -key C:\Temp\Khattab.key -out C:\Temp\CertificateSigningRequest.certSigningRequest -subj "/emailAddress=cuperous@gmail.com, CN=Ahmed Khattab, C=US" "

Accept Apple Developer Invitation from your Company

  • Create An Apple ID
  • Accept and Confirm Invitation

Request Certificate

NOTE: Use Safari or FireFox when accessing Apple’s Developer Website

  • Go To Apple’s Developer Website
  • Go To the Certificates Tab
  • Click on Request Certificate
image005.png

image007.png

  • Browse to the CSR file C:\Temp\CertificateSigningRequest.certSigningRequest and Submit
  • CSR File Must be Approved by an Admin
  • After approval, download certificate
image009.png
  • Save the certificate file “developer_identity.cer” to C:\Temp

Download the Provisioning Profile

  • Go To Apple’s Developer Website
  • Go To the Provisioning Tab
  • Download the Provisioning Profile “General Apps” to C:\Temp\GeneralApps.mobileprovision
image011.png

Convert the Apple Certificate into a P12 File for Flash

  • Generate the PEM File
    • Open Command Prompt
      • CD to C:\OpenSSL-Win32\Bin\
      • Type "openssl x509 -in C:\Temp\developer_identity.cer -inform DER -out C:\Temp\developer_identity.pem -outform PEM"
image013.png

Generate P12 File Needed for Flash Builder

  • Open Command Prompt
    • CD to C:\OpenSSL-Win32\Bin\
    • Type "openssl pkcs12 -export -inkey C:\Temp\Khattab.key -in C:\Temp\developer_identity.pem -out C:\Temp\iphone_dev.p12"
    • Enter the Password for this certificate
image015.png

Add the Certificates to Flash Builder App

  • Open the Project Properties
image017.png
  • Go To the “ActionScript Build Packaging” -> Apple iOS
  • Set the Certificate File
    • Browse to the P12 Certificate that we just generated C:\Temp\iphone_dev.p12
  • Set the Provisioning File
    • Browse to the P12 Certificate that we just generated C:\Temp\GeneralApps.mobileprovision
image019.png

Set the Air Application ID

  • If you do not correctly set the Air Application ID, you’ll get the below error:
image021.png
  • Open the File “<project>-app.xml
image023.png
  • Set the File id to be
    • com.xyzCompany.GeneralApps.HelloWorld
    • (“com.xyzCompany.GeneralApps.”)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ahmed Ibrahim Khattab
Software Developer (Senior) Nobel Systems
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 20 Aug 2011
Article Copyright 2011 by Ahmed Ibrahim Khattab
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid