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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Post-Build authentication failed

Discussion in 'Unity Build Automation' started by Community_Hacker, Oct 7, 2020.

  1. Community_Hacker

    Community_Hacker

    Joined:
    Oct 6, 2018
    Posts:
    2
    I'm using Unity Cloud Build and as I'm on windows I need to post it with Post-Build script but it fail on authentication. I'm not sure what username and password to use. Google says I should add my AppleID to Environment Variables, but AppleID is email , and unity doesnt allow special characters in key.
    Any help ?
    Thanks !
     

    Attached Files:

  2. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,077
    That's correct, you need to use your email and password as environment variables in the cloud build config. There's more info here: https://forum.unity.com/threads/path-to-the-final-ipa-file.754331/#post-5073929

    Obviously people don't like to use their main password for this kind of thing so it's safer if you create an application specific password that will only work with 'altool'. To do that go to appleid.apple.com/account/manage and generate an application specific password for 'application loader' or 'itmsTransporter'.
     
  3. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    When you say "Unity doesn't allow special characters in key" do you mean that you are entering the email as the environment variable key? It should instead be entered as a value since you will use the key to lookup the email in your post-build script - if the value has issues with special characters then let me know and I will look into it.
     
  4. Community_Hacker

    Community_Hacker

    Joined:
    Oct 6, 2018
    Posts:
    2
    Sorry guys its was just me being stupid and trying to add email as key instead of value.
    Its all working good now.
    Thanks !