我正在尝试将Adobe Air应用程序打包到iOS。问题是我总是得到此错误:
unexpected failure: Functionality not supported on : Darwin
java.lang.UnsupportedOperationException: Functionality not supported on : Darwin
at com.adobe.air.ipa.AOTCompiler.<init>(AOTCompiler.java:220)
at com.adobe.air.ipa.GOAOTCompiler.<init>(GOAOTCompiler.java:55)
at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:447)
at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:860)
at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:273)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java:591)
at com.adobe.air.ADT.run(ADT.java:435)
at com.adobe.air.ADT.main(ADT.java:485)
首先,当我尝试通过模拟器
运行时,我遇到了这个错误adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore cert.p12 -storepass password myApp.ipa hello-app.xml Main.swf -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
之后,我认为当我用真正的证书将它打包到iPhone上时,事情可能会变得更好。不。
adt -package -target ipa-debug -keystore cert.p12 -storetype pkcs12 -storepass password -provisioning-profile iOS_Team_Provisioning_Profile_.mobileprovision HelloWorld.ipa hello-app.xml Main.swf Default.png
同样的效果。所以,根据堆栈跟踪和我的实验,我认为问题出现在从swf到ipa的空编译文件中。我该怎么办?
其他一些信息:
adt -version
13.0.0.76
java -version
openjdk version "1.7.0-b147"
OpenJDK Runtime Environment (build 1.7.0-b147-20111031)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
hello-app.xml file contents:
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/4.0">
<id>ru.hello.world</id>
<versionNumber>1.0.1</versionNumber>
<filename>Hello World</filename>
<name>Example Co. AIR Hello World</name>
<description>
<text xml:lang="en">This is an example.</text>
<text xml:lang="fr">C'est un exemple.</text>
<text xml:lang="es">Esto es un ejemplo.</text>
</description>
<copyright>Copyright (c) 2010 Example Co.</copyright>
<initialWindow>
<title>Hello World</title>
<content>Main.swf</content>
</initialWindow>
</application>
答案 0 :(得分:0)
问题出在Java中。我使用开放的JDK,但是当我将它降级回默认的mac JRE时,问题就解决了。