'remark: Incremental compilation has been disabled: it is not compatible with whole module optimization while building project for debug

In my iOS application when I change on swift file and try to build the application it is taking almost five minutes and building all sources files, Which leads to higher build time for every small code change

When ever build the app in build report I seeing the following warning

remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationBuild time for swift files with small text change in one s

enter image description here

Action taken care already :

Incremental build

Optimization level to Fastest for debug builds

Updated project to new build system

Kindly Please check and suggest to me the way to optimize the build time, Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source