将 Adob​​e AIR 应用程序部署到 iOS 模拟器

Deploy Adobe AIR app in to iOS simulator

我正尝试在 iOS 模拟器上 运行 一个简单的测试应用程序,但出现此错误:

Error occurred while packaging the application:

[Fatal Error] :1:1: Content is not allowed in prolog.
java.io.IOException: PLIST generation failed due to SAX error:org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
  at com.adobe.air.Plist.newFromString(Plist.java:351)
  at com.adobe.air.Plist.newFromFile(Plist.java:325)
  at com.adobe.air.ipa.IPAOutputStream.setSDKVersion(IPAOutputStream.java:1070)
  at com.adobe.air.ipa.IPAOutputStream.setPlatformSDKLocation(IPAOutputStream.java:971)
  at com.adobe.air.ipa.IPAPackager.setDeviceSDKDirectory(IPAPackager.java:187)
  at com.adobe.air.ADT.parseFileAndPathArguments(ADT.java:1423)
  at com.adobe.air.ADT.parseDescriptorAndFileset(ADT.java:1474)
  at com.adobe.air.ADT.parseInput(ADT.java:929)
  at com.adobe.air.ADT.parsePackage(ADT.java:672)
  at com.adobe.air.ADT.parseArgsAndGo(ADT.java:570)
  at com.adobe.air.ADT.run(ADT.java:419)
  at com.adobe.air.ADT.main(ADT.java:469)
Exception in thread "main" java.lang.Error: Unable to find llvm JNI lib in:
/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/adt.jar/Darwin
/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/aot/lib/x64
/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib/adt.jar
/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK/lib

  at adobe.abc.LLVMEmitter.loadJNI(LLVMEmitter.java:582)
  at adobe.abc.LLVMEmitter.<clinit>(LLVMEmitter.java:596)
  at com.adobe.air.ipa.AOTCompiler.generateExtensionsGlue(AOTCompiler.java:419)
  at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1790)
  at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:378)
  at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:743)
  at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
  at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)
  at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
  at com.adobe.air.ADT.run(ADT.java:419)
  at com.adobe.air.ADT.main(ADT.java:469)

我已经 google 它但我无法修复它。

重现步骤:

  1. 创建一个 ActionScriptMobileProject
  2. 在 iOS 模拟器上将其配置为 运行
  3. 运行 代码没有任何变化。

要解决此问题,我们需要更新 AIR SDK

https://helpx.adobe.com/air/kb/archived-air-sdk-version.html

复制到这里:

  • Mac OS X: /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK
  • Windows 7(64 位):C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK

并将 *-app.xml 文件头更新为这个:

<application xmlns="http://ns.adobe.com/air/application/17.0">

http://www.adobe.com/devnet/air/articles/ane-android-devices.html