https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Nikita Klimenko

09/23/2019, 1:22 PM
Hi, trying to build kotlin multiplatform project with version 1.3.60-dev-2303 and getting this error during the IOS build.
Copy code
> Task :linkMyLibReleaseFrameworkIos
e: Compilation failed: Lowering DCEPhase: phases [Devirtualization] are required, but not satisfied
I'm using these options
Copy code
freeCompilerArgs += "-Xdisable-phases=Devirtualization,BuildDFG"
Without these options build goes well. On the previous version 1.3.41 these options work well
o

olonho

09/23/2019, 1:29 PM
you probably need to disable DCE phase as well
Another option is to remove all those hacks and check if it works for you now.
n

Nikita Klimenko

09/23/2019, 1:34 PM
I've got
Copy code
Execution failed for task ':compileKotlinIos'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
using this
Copy code
freeCompilerArgs += "-Xdisable-phases=Devirtualization,BuildDFG,DCE"
These hacks are very useful, it's helping us to debug IOS application
o

olonho

09/23/2019, 1:35 PM
Use
DCEPhase
, and maybe makes sense to report bug with minimal reproducer, so that we could fix it in 1.3.60.
👍 1
n

Nikita Klimenko

09/23/2019, 1:44 PM
Disabling DCEPhase worked, thanks!