Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

USYM_UPLOAD_AUTH_TOKEN missing in xcode

Discussion in 'Unity Cloud Diagnostics' started by an_easytarget, Feb 14, 2020.

  1. an_easytarget

    an_easytarget

    Joined:
    May 5, 2014
    Posts:
    4
    Just wanted to share about issue we encountered and how we fixed it.

    After updating to Unity 2019.2.11f1. Our devs' local batch mode builds failed with USYM error if cloud diagnostics was enabled by a admin.

    We followed Unity's advice to pass username and password in the command line. This enabled part of devs' to make batch mode builds locally while others still had USYM error. We end up finding not all devs' have access to Unity Services, we don't want devs to change Unity Services other than leads.

    Our Solution:
    Was to write a post process script that sets USYM_UPLOAD_AUTH_TOKEN to NONE. Since these local builds that devs make are used to test on their devices and not used for QA or Submission

    Code (CSharp):
    1. proj.SetBuildProperty(targetGuid, "USYM_UPLOAD_AUTH_TOKEN", "NONE");
     
  2. unity_Csbq03pCqsK6jQ

    unity_Csbq03pCqsK6jQ

    Joined:
    Feb 4, 2019
    Posts:
    1
    Were you able to fix the problem? some forums suggests to use -username and -password flags in command-line mode
     
  3. llim_unity

    llim_unity

    Joined:
    Feb 13, 2020
    Posts:
    12
    If these are for development, wouldn't simply disabling cloud diagnostics for local builds work? At least, that is how we resolved the issue. Only the build machine had Cloud Diagnostics enabled, and the rest of the team had it disabled. (So we only had to set -username and -password options to our bash script on the build machine, as we build using batchmode there).