Hi, trying to build kotlin multiplatform project w...
# multiplatform
n
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
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
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
Use
DCEPhase
, and maybe makes sense to report bug with minimal reproducer, so that we could fix it in 1.3.60.
👍 1
n
Disabling DCEPhase worked, thanks!