当打包ipa文件时出现错误:mx.logging.targets :: LineFormattedTarget找不到并且编译abc失败

问题描述:

我更新了air sdk来编译我的应用程序。我用flex3.9进行了flex4.6编译,并且为apk和ipa进行了包装。现在我需要空气24进行编辑。我得到:错误:打包ipa文件时无法找到mx.logging.targets :: LineFormattedTarget。谁能帮我?我检查它开始与空气22,我的意思是我编译它与flex4.6_air_21和它的工作,但与22它开始给这个错误当打包ipa文件时出现错误:mx.logging.targets :: LineFormattedTarget找不到并且编译abc失败

+0

我在这里没有使用IDE。它在与蚂蚁的控制台中完成。 – piokub

问题撒谎。我们在之前的sdk中有不同的flextasks.jar。当我们将它们复制到新的sdk时,它解决了这个问题。重叠FlexSDK和Air SDK与这个问题无关,首先你使用flex sdk进行编译,然后你使用air sdk进行蒸发和包装(对于iOS和Android)。只要你指向适当的工具,你就可以分开使用这两种SDK。

我认为你需要覆盖AIR sdk到Flex sdk。 说明现在的位置:用Ant任务 https://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html

Exit Flash Builder.

(Optional) Back up the Flex SDK by copying the entire directory.

In Flash Builder, for example, copy the directory at:

Windows: C:/Program Files/Adobe/Flash Builder 4.7/sdks/4.6.0

Mac OS: /Applications/Adobe Flash Builder 4.7/sdks/4.6.0

Download the appropriate AIR SDK file for your operating system from www.adobe.com/products/air/sdk/, and save it to the root directory of the Flex SDK.

Windows: AIRSDK_Compiler.zip

Mac OS: AIRSDK_Compiler.dmg

Extract the contents of the AIR SDK archive and overwrite the existing SDK files.

Windows: Right-click the ZIP file and select Extract All, or use a decompression tool of your choice.

Mac OS: In Terminal, run these commands:

hdiutil attach AIRSDK_Compiler.dmg cp -rf /Volumes/AIR\ SDK/* /path-to-empty-FLEXSDK-directory If you have trouble overwriting files due to file permissions, try these commands:

sudo hdiutil attach AIRSDK_Compiler.dmg sudo cp -rf /Volumes/AIR\ SDK/* /path-to-empty-FLEXSDK-directory (Optional) To access the new AIR 3.4 APIs, update your application descriptor file to the 3.4 namespace.

To update the namespace, change the xmlns attribute in your application descriptor to:

(Optional) To ensure that the output SWF file targets SWF version 17, pass an additional compiler argument: -swf-version=17.

+0

首先我不使用FB。我用蚂蚁编译它。这对我的问题没有帮助。 – piokub

+1

mx.logging.targets :: LineFormattedTarget位于Flex包中...是否将Flex SDK上的AIR SDK覆盖了? – Clintm