When packaging ipa file got Error:mx.logging.targets::LineFormattedTarget could not be found and compile-abc fails
When packaging ipa file got Error:mx.logging.targets::LineFormattedTarget could not be found and compile-abc fails
我已经更新了 air sdk 来编译我的应用程序。我有 flex 4.6 和 air3.9 用于编译和 air 24 用于打包 apk 和 ipa。现在我还需要 air 24 进行编译。我得到:Error:mx.logging.targets::LineFormattedTarget 在打包 ipa 文件时找不到。谁能帮我?我检查过它以 air 22 开头,我的意思是我用 flex4.6_air_21 编译了它并且它起作用了,但是从 22 开始它开始给出错误
我认为您需要将 AIR sdk 叠加到 Flex sdk 上。
说明在这里:
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.
问题出在蚂蚁任务上。我们在之前的 sdk 中有不同的 flextasks.jar。当我们将它们复制到新的 sdk 时,问题就解决了。叠加 FlexSDK 和 Air SDK 与问题无关,因为首先您使用 flex sdk 进行编译,然后您使用 air sdk 进行蒸腾和打包(对于 iOS 和 android)。你可以分别拥有这两个 sdk,只要你指向它们里面的适当工具。
我已经更新了 air sdk 来编译我的应用程序。我有 flex 4.6 和 air3.9 用于编译和 air 24 用于打包 apk 和 ipa。现在我还需要 air 24 进行编译。我得到:Error:mx.logging.targets::LineFormattedTarget 在打包 ipa 文件时找不到。谁能帮我?我检查过它以 air 22 开头,我的意思是我用 flex4.6_air_21 编译了它并且它起作用了,但是从 22 开始它开始给出错误
我认为您需要将 AIR sdk 叠加到 Flex sdk 上。 说明在这里: 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.
问题出在蚂蚁任务上。我们在之前的 sdk 中有不同的 flextasks.jar。当我们将它们复制到新的 sdk 时,问题就解决了。叠加 FlexSDK 和 Air SDK 与问题无关,因为首先您使用 flex sdk 进行编译,然后您使用 air sdk 进行蒸腾和打包(对于 iOS 和 android)。你可以分别拥有这两个 sdk,只要你指向它们里面的适当工具。