Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2018.4.X, 2019.2.X, 2019.3.X

Votes

39

Found in

2018.4.1f1

2018.4.3f1

Issue ID

1167025

Regression

Yes

[iOS] Batchmode builds fail with CloudDiagnostics enabled when USYM_UPLOAD_AUTH_TOKEN is not set

Cloud Diagnostics

-

Internal repro:
./utr.pl --suite=integration --testtarget=iOS --testfilter=Unity.IntegrationTests.CrashReporting.CrashReportingBuildsTest.CanBuildiOS
The test enables CloudDiagnostics and performs a batchmode build. The resultant Xcode project won't compile with the error:
Please provide an auth token with USYM_UPLOAD_AUTH_TOKEN environment variable.

Compiling the Xcode project by passing the env variable to xcodebuild process results in a successful build:
USYM_UPLOAD_AUTH_TOKEN=test xcodebuild build <projectPath>

To reproduce:

1. Download attached "Project.zip" project and open in Unity
2. Change the platform to iOS
3. Enable Cloud Diagnostics
4. Close Unity Editor
5. Build in BatchMode with Arguments:

<Unity Path> -batchmode -buildTarget iOS -runTests -testplatform playmode -projectpath <PATH> -executeMethod BuildScript.UnityBuildTest -username <Your Unity ID> -password <Password of your Unity ID> -quit

6. When Build complete, open Xcode project
7. In Menu bar press Product > Build

Expected result: Xcode successfully Builds Project
Actual result: Xcode fails to Build Project and throws Error:

"Please provide an auth token with USYM_UPLOAD_AUTH_TOKEN environment variable"

Notes:
- This issue happens only on iOS
- If You Build directly from Unity Editor, everything works as Expected
- If You Build without "-runTests -testplatform playmode" or with Cloud Diagnostics disabled, the Build in Xcode completes without any issues
- The Project and a Video how to reproduce this issue are attached in Comments section
- There are few Forum links to this issue:
https://forum.unity.com/threads/ios-build-issues-should-be-resolved-and-unity-2019-1-4f1-now-available.687163/
https://forum.unity.com/threads/unity-2018-4-1f1-lts-batch-build-for-ios-is-not-working.690103/
https://forum.unity.com/threads/unity-2018-4-1f1-lts-batchmode-for-ios-is-not-working.693010/

Reproduced on Unity 2018.4.1f1, 2018.4.3f1, 2019.1.9f1, 2019.2.0b8 and 2019.3.0a8
Not reproduced on Unity 2018.4.0f1
Regression on Unity 2018.4.1f1

Comments (33)

  1. D106128f8d52d1e15dcae0829a8341d3?d=mm

    NumberValley

    Apr 29, 2022 14:55

    Unity 2020.3.33f1 still getting the error.
    I'm using TeamCity and launch XCode with a command line too.

    Writing "FakeToken" doesn't work.

  2. F7a803da1e6e3b58d4f30c9e7be50bcf?d=mm

    dan_ginovker

    Mar 21, 2022 13:35

    Issue still occurring for 2019.4.31f

  3. 191a7433e421dc3bb64533284ffff66b?d=mm

    stopiccot_tds

    Feb 16, 2022 15:21

    This issue started to occur again

  4. B8d106f02803572b33d23b0024da0b72?d=mm

    BAIZOR

    Feb 10, 2022 16:29

    The issue still exists in Unity 2020.3.15

  5. B96d7d5bc82e9fe19f45e5c1f4e1cbf2?d=mm

    Estellise-Yukihime

    Jul 26, 2021 08:09

    Issue re-occurred in version 2020.3.10f1

  6. D106128f8d52d1e15dcae0829a8341d3?d=mm

    NumberValley

    Nov 18, 2020 09:59

    Unity 2020.1.12f still getting the error.
    2019.3.11 the same.
    I'm using TeamCity and launch XCode with a command line.

  7. 6e4702385c5c9c2123cff01ee855d584?d=mm

    IkerG_Anino

    Nov 05, 2020 07:24

    Having the same issue with Jenkins and Unity 2019.4.2f

  8. 346e4f71ad0de0ebd42a6ff89087c03f?d=mm

    Aquablue

    Nov 03, 2020 09:30

    This issue happens again with 2019.4.12f1 when building for iOS

  9. 82103bbfe643b7ce415a5cd746db1677?d=mm

    alesrazym

    Oct 07, 2020 12:52

    Issue reoccured in 2019.4.11f1 for iOS and tvOS Simulators.

    Giving username and password in command line arguments seems not to be enough.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.