Steps to use Flash iPhone packager to create iPhone app. from Captivate SWF
Further to Shameer’s post on “Publish to iPhone from Captivate and eLearning Suite“, here are the next steps to generate the iPhone app. from your Captivate SWF.
These are manual steps and you need to use the terminal/shell to execute the command on a Mac machine where you have your Apple Developer Certificate and Provisioning Profile installed:
- Every iPhone app. has an app descriptor file which describes the app. name, version, icons, initial orientation etc. Create app.xml file for the SWF that you want to convert to iPhone app. Use the attached “Sample-app.xml” file and replace all occurrences of “Sample” with your SWF file name. Change other settings as desired.
- Go to <Flash CS5 install folder>/pfi/lib and execute the following command on the terminal. Replace all occurrences of Sample with your SWF file name and also replace path to your SWF file, provisioning profile , developer certificate and certificate password appropriately.
jayashree-pandeyas-macbook-pro:lib jpandeya$ java -jar pfi.jar -package -target ipa-debug -provisioning-profile ~/Downloads/CaptivateiPhoneProfile.mobileprovision -storetype pkcs12 -keystore ~/Desktop/Certificates.p12 -storepass <certificate password> ~/Documents/iPhone Testing/Sample.ipa ~/Documents/iPhone Testing/Sample-app.xml -C ~/Documents/iPhone Testing/ Sample.swf
Pls. be patient as it might take 3-5 minutes to generate the .ipa file.