Dear Babu,
The xCode you are using does not support Swift 5.1.2 please update your xCode.
For now you are forced to keeping your xCode up-to-date, we hope to prevent these problems in a future, if we manage to remove the dependency of swift at all.
Cheers, Andries