簡體   English   中英

打包iOS版Adobe Air:達爾文錯誤不支持

[英]Packaging Adobe Air for iOS: not supported on Darwin error

我正在嘗試將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>

問題出在Java中。 我使用了開放式JDK,但是當我將其降級到默認的Mac JRE時,問題解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM