将Adobe AIR应用程序部署到iOS模拟器中

时间:2015-05-26 09:35:43

标签: ios actionscript air adobe 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)

我已经谷歌了,我无法修复它。

重现的步骤:

  1. 创建ActionScriptMobileProject
  2. 将其配置为在iOS模拟器上运行
  3. 在不对代码进行任何更改的情况下运行它。

1 个答案:

答案 0 :(得分:0)

要解决此问题,我们需要更新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