created IOS build using Unity trying to run this xcode getting following error
"UNITY_VERSION_VER, UNITY_VERSION_MAJ, UNITY_VERSION_MIN must be set in xcode project, something went wrong"
following is the code which auto generated
#if !defined(UNITY_VERSION_VER) || !defined(UNITY_VERSION_MAJ) || !defined(UNITY_VERSION_MIN)
#error "UNITY_VERSION_VER, UNITY_VERSION_MAJ, UNITY_VERSION_MIN must be set in xcode project, something went wrong"
#endif
Unity version is already there in the Xcode project
Using unity version 2022.1.014b
how to fix this?
3
Answers
You defined UNITY_RUNTIME_VERSION but that doesn’t match any of the names that you need. Rename that value to UNITY_VERSION_VER
1.Add macro definitions for "UNITY_VESION_VER, UNITY_VESION_MAJ, UNITY_VESION_MIN" to Prefix.pch
enter image description here
2.Delete the existing Prefix.pch.gch from the directory as prompted for recompilation
enter image description here
After Adding macro definitions getting error in xcode "Reference to ‘ReentrantLock’ is ambiguous"