gpt4 book ai didi

ios - IPA 设置创建失败

转载 作者:可可西里 更新时间:2023-11-01 05:55:51 24 4
gpt4 key购买 nike

我正在尝试为 iOS 构建 AwayPhysics。但是当我在 FD 下编译发布/临时甚至(慢调试)时:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.lang.Integer.valueOf(Unknown Source)
at adobe.abc.GlobalOptimizer.merge(GlobalOptimizer.java:9985)
at adobe.abc.GlobalOptimizer$InputAbc.readCode(GlobalOptimizer.java:1265
)
at adobe.abc.GlobalOptimizer$InputAbc.readBody(GlobalOptimizer.java:685)

at adobe.abc.GlobalOptimizer$InputAbc.readBodies(GlobalOptimizer.java:40
4)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:331)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
.java:611)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:104)
Compilation failed while executing : ADT

我测试过:Adobe Air 3.4 (Flex SDK)Adobe Air 3.5 (Flex SDK)Adobe Air 3.6(Flex SDK)Adobe Air 3.7 (Flex SDK)Adobe Air 3.8 测试版(Flex SDK)

Adobe Air 3.7 (ASCSDK)Adobe Air 3.8 (ASCSDK)

我也尝试过“-optimize=false”,但没有任何帮助。

只有 fast-interpreter 模式有效,这真的很慢!

重现步骤:

  1. 下载 AwayPhysics(flascc 上的 Bullet physics) https://github.com/away3d/awayphysics-core-fp11/tree/dev或物理学
  2. 构建任何示例或只包含 AWPDynamicWorld

更新:

将堆内存大小增加到 -Xms1024m -Xmx1524m 后:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.HashSet.<init>(Unknown Source)
at adobe.abc.Algorithms$SetMap.get(Algorithms.java:226)
at adobe.abc.Algorithms.addUses(Algorithms.java:165)
at adobe.abc.Algorithms.findUses(Algorithms.java:187)
at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4731)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)
at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:532)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:341)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
.java:611)
at com.adobe.air.ipa.BitcodeGenerator.main(Bitcod

eGenerator.java:104)
Compilation failed while executing : ADT

最佳答案

您可以尝试增加 Java 虚拟机的“最大堆大小”(保留的最大内存量)。

您可以在 jvm.config 中配置此设置,它位于 sdk_install_dir/bin

To change the maximum heap size, change the value of the Xmx property. The following example sets the initial heap size to 256M and the maximum heap size to 512M:

java.args=-Xms256m -Xmx512m -Dsun.io.useCanonCaches=false

来源:http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fd9.html

关于ios - IPA 设置创建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16738288/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com