我有一个Flex web项目及其编译版本(sample.swf),通过使用这个swf文件,我想通过以下命令使用Adobe Developer Tool命令行打包ios应用程序。
adt -package -target ipa-ad-hoc -keystore ..cerCert.p12 -storetype pkcs12 -provisioning-profile ..cerDEMO.mobileprovision ..binsample.ipa sample-app.xml sample.swf
这个命令创建了一个ipa包,但当我将该ios应用程序安装到我的ipad上时,该应用程序只显示背景色而不显示内容。
这是我的描述符文件的代码:
<application xmlns="http://ns.adobe.com/air/application/3.9">
<id>com.mytech.demo</id>
<filename>sample</filename>
<name>sample</name>
<versionNumber>1.1.0</versionNumber>
<initialWindow>
<content>sample.swf</content>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<renderMode>gpu</renderMode>
<autoOrients>true</autoOrients>
<fullScreen>true</fullScreen>
<visible>true</visible>
</initialWindow>
<!-- iOS specific capabilities -->
<iPhone>
<InfoAdditions>
<![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>No</string>
]]>
</InfoAdditions>
</iPhone>
</application>
它很可能抛出了一个RTE,因此您在屏幕上看不到任何东西。您是否尝试将它连接到调试器并遍历代码?