2012-02-15 76 views
1

所以我現在用的是原生擴展從http://blog.aboutme.be/2011/12/10/udp-in-air-for-ios-using-a-native-ex張力/很憋屈ADT包裝和AIR本機擴展iOS上

它配備了一個柔性的演示應用程序,內置的FB時,Android和iOS上完美的作品。我在FB中製作了一個小型的as3應用程序,並且在Android和iOS上也很完美。

然後,我從as3 FB項目中取得了app.xml,並將其用於我的flash pro/adt項目。我內置的包在ADT與以下

安卓

開始ADT -package -target的apk -storetype PKCS12 -keystore androidTest.p12 NetPRO_Demo.apk NetPRO_Demo-app.xml的NetPRO_Demo.swf 72icon.png -extdir擴展

的iOS:

開始ADT -package -target IPA-特設-storetype PKCS12 -keystore Certificates.p12 -provisioning矚目CashRegisteriPad1.mobileprovision NetPRO_Demo.ipa NetPRO_Demo-app.xml的NetPRO_Demo.swf 72icon。 png -extdir分機

Android版本完美運行,iOS版本位於黑屏並凍結。我已經花了數天的時間,我的ADT包裝有什麼不同,它與FB包裝不同,它只能在iOS上打破。

此外,如果我擺脫本機擴展,我的ADT包裝工作正常。

回答

0

它似乎缺少一個參數-C之前的其餘文件。嘗試:

start adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore Certificates.p12 -provisioning-profile CashRegisteriPad1.mobileprovision NetPRO_Demo.ipa NetPRO_Demo-app.xml -C NetPRO_Demo.swf 72icon.png -extdir extensions

如果那不解決這個問題,我敢打賭分配您的個人資料provisonal心不是和你試圖將它打包爲特設。也許嘗試不同的配置文件或將包裝更改爲ipa-debug-interpreter。 另外,它要求輸入密碼嗎?可能還會添加-storepass *yourpass*和iphone sdk -platformsdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/

1

我有同樣的問題 - 我的擴展在Android和iOS ipa-test上運行正常,但在ipa-ad-hoc啓動時凍結。

此修復程序作爲外部庫鏈接到iOS上的NativeExtension swc。在命令行中我不得不修改提供給編譯我的config.xml文件如下:

BEFORE:

<flex-config> 
<swf-version>14</swf-version> 
<target-player>11.2</target-player> 
    <compiler> 
     <headless-server>true</headless-server> 
     <source-path> 
      <path-element>src</path-element> 
      <path-element>..</path-element> 
     </source-path> 
     <library-path> 
      <path-element>../Extensions/ExampleExt/bin/iOSExampleExtension.swc</path-element> 
      <path-element>${flexlib}/libs/air/airglobal.swc</path-element> 
      <path-element>${flexlib}/libs/framework.swc</path-element> 
     </library-path> 
    </compiler> 
</flex-config> 

AFTER:

<flex-config> 
<swf-version>14</swf-version> 
<target-player>11.2</target-player> 
    <compiler> 
     <headless-server>true</headless-server> 
     <source-path> 
      <path-element>src</path-element> 
      <path-element>..</path-element> 
     </source-path> 
     <external-library-path> 
      <path-element>../Extensions/Telephony_iOS/bin/iOSTelephonyExtension.swc</path-element> 
     </external-library-path> 
     <library-path> 
      <path-element>${flexlib}/libs/air/airglobal.swc</path-element> 
      <path-element>${flexlib}/libs/framework.swc</path-element> 
     </library-path> 
    </compiler> 
</flex-config> 

希望這將解決你的問題太OP 。

+0

那麼你是如何創建SWC的?只是重新命名ane的? – Hassy31 2015-01-06 08:25:35