2012-02-15 78 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