我正在尝试将Adobe应用程序打包到一个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>
发布于 2014-04-11 09:27:49
问题出在Java上。我使用了open,但是当我将其降级为默认的mac时,问题就解决了。
https://stackoverflow.com/questions/22912683
复制相似问题