By Neha



18 May 2012

With AIR 3.3, it is possible to use platformsdk switch for iOS on a Windows machine too. For using this feature, one needs to copy the desired iOS SDK (iPhoneOS.x.y.sdk) on their Windows machine and use the platformsdk switch of the ADT:
adt -package
-target (ipa-test|ipa-test-interpreter|ipa-debug|ipa-debug-interpreter|ipa-ad-hoc|ipa-app-store)
-provisioning-profile <path to .mobileprovision>
<output IPA file>
<application.xml> <SWF> <assets> -extdir <path to extensions folder>
-platformsdk <path to the iOS SDK folder>
Now, this seems fairly simple, the only difficulty which may arise is while copying the SDK from Mac to Windows machine(as symbolic links are present on Mac, which need to be copied as actual files on Windows, else packaging would fail).
The following ways of copying the SDK are recommended to preserve the symlinks:
  1. Compress the iOS SDK using “zip -r” on the terminal and copy it using  “cp -R”. Extract on the Windows machine.
  2. Copy the dmg on a Windows machine and extract it to get the iOS SDK.
Currently, platformsdk can’t be used for iOS in Flash Builder on Windows.