skip to Main Content

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
enter image description here

Using unity version 2022.1.014b

how to fix this?

3

Answers


  1. You defined UNITY_RUNTIME_VERSION but that doesn’t match any of the names that you need. Rename that value to UNITY_VERSION_VER

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
  3. After Adding macro definitions getting error in xcode "Reference to ‘ReentrantLock’ is ambiguous"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search