How to publish an iPhone/iPad/iOS Application with the Adobe Packager for iPhone without using a MAC
I’ve been experimenting lately with the Packager for iPhone on Windows and realized how much of the hustle that can be.
So here is a step by step tutorial that will transform your SWF file into an IPA
.
I Assume you are already registered with Apple as an iOS developer.
I used openssl (download) for windows to generate the needed certificates and for needed conversions, it’s free and quite easy to install.
Step 1: Generating a Certificate Signing Request
Replace the COUNTRY_CODE, STATE,CITY,COMPANY,DEPARTMENT to whatever you need.
Command Line:
openssl req -new -newkey rsa:2048 -nodes -out CertRequest.csr -keyout CertRequest.key -subj "/C=COUNTRY_CODE/ST=STATE/L=CITY/O=COMPANY/OU=DEPARTMENT/
this will generate an output like this:
Loading 'screen' into random state - done Generating a 2048 bit RSA private key .........................................................+++ ......................+++ writing new private key to 'CertRequest.key' -----
Step 2: Submit the Certificate Signing Request to Apple
- Login to your Developer Account @ Apple
- go to the iOS Provisioning Portal
- Certificates section
( direct Link )
And upload the CertRequest.csr generated in the previous step.
*Make sure you have installed the WWDR intermediate certificate, link is available on the Certificates page or submit will fail.
Step 3: Convert the Apple’s developer_identity.cer to .p12 needed by iPhone Packager
Once your certificate request got approved download it by default it’s saved as developer_identity.cer.
You will need the CertRequest.key from Step 1.
Open a command line again and type:
openssl x509 -inform der -in developer_identity.cer -out developer_identity.pem openssl pkcs12 -export -out DeveloperIdentity.p12 -inkey CertRequest.key -in developer_identity.pem
Output:
Loading 'screen' into random state - done Enter Export Password: Verifying - Enter Export Password:
Now you have your Certificate (DeveloperIdentity.p12) that you can use with the iPhone Packager.
This was easy … but it’s not over yet.
To use the packager you will also need a Provisioning file that you have to get from Apple’s iOS Provisioning Portal.
Step 4: Making a .mobileprovision file
Got to the Provisioning page and hit New Profile
- Enter a Profile Name
- Tick the Certificate you’ve requested at step 2
- Select an App ID (or create one ) .. and remember it you will need it later
- Select the devices (or add one) you would like to test on
Download the file once Apple approved it (refresh the page in a minute or two).
I’ll assume the name of the file is: DeveloperName.mobileprovision
Almost finished.
Step 5: Making the IPA file
Flash CS5 in the iOS profile use the DeveloperName.mobileprovision and DeveloperIdentity.p12 files and make sure you the Application ID is the same you used for making the mobileprovision file
Click Publish and wait… it will take a while…
Adobe AIR, Flex edit the *-app.xml in the ID tage put the same Application ID you used for making the mobileprovision file.
make sure the application xmlns is 2.0 not 2.5
<application xmlns="http://ns.adobe.com/air/application/2.0">
add this
<iPhone>
<!-- A list of plist key/value pairs to be added to the application Info.plist -->
<InfoAdditions>
<![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>YES</string>
]]>
</InfoAdditions>
</iPhone>
Last step is to drag the IPA in iTunes and than into your connected device.
&nbps;
I hope this is useful, happy iOS codding