Unity Build ios Xcode unity version missing error

After building ios build I am getting following error

Error message: “UNITY_VERSION_VER, UNITY_VERSION_MAJ, UNITY_VERSION_MIN must be set in xcode project, something went wrong”

Using Unity version 2021.3.2f1 and Xcode version 13.3.1 (13E500a)

how to fix this?

Following is the error screenshot

1.Add macro definitions for “UNITY_VESION_VER, UNITY_VESION_MAJ, UNITY_VESION_MIN” to Prefix.pch

2.Delete the existing Prefix.pch.gch from the directory as prompted for recompilation

8209512--1071060--upload_2022-6-15_15-55-43.png
8209512--1071063--upload_2022-6-15_15-59-13.png