Creating an IPA FAILED Installation

I am trying to build AwayPhysics for iOS. But when I compile release / ad-hoc or even (slow debugging) under 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 

I tested: 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 Beta (Flex SDK)

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

I also tried "-optimize = false" nothing helps.

Only the fast interpreter mode works, which is very slow!

Steps to play:

Update:

After increasing the heap memory size to -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 
+4
source share
1 answer

You can try increasing the "maximum heap size" (maximum amount of reserved memory) for the Java virtual machine.

This parameter can be configured in jvm.config , which is located in 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 256 M and the maximum heap size to 512 M:

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

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

+2
source

Source: https://habr.com/ru/post/1482594/


All Articles