Configuring Flash Builder 4.5 for iOS Development





0/5 (0 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
"

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

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

- Browse to the CSR file C:\Temp\CertificateSigningRequest.certSigningRequest and Submit
- CSR File Must be Approved by an Admin
- After approval, download certificate

- 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

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
"
- Open Command Prompt

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

Add the Certificates to Flash Builder App
- Open the Project Properties

- 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

Set the Air Application ID
- If you do not correctly set the Air Application ID, you’ll get the below error:

- Open the File “<project>-app.xml”

- Set the File id to be
- “
com.xyzCompany.GeneralApps.HelloWorld
” - (“
com.xyzCompany.GeneralApps.
”)
- “