Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2019.4.X, 2020.3.X, 2021.2.X

Votes

1

Found in

2019.4

2019.4.25f1

2020.3

2021.1

2021.2

2022.1

Issue ID

1357782

Regression

No

All files are deleted when building an iOS Player to the desktop

Build Pipeline

-

How to reproduce:
1. Create a new project
2. File > Build Settings…
3. Select iOS and Switch Platform
4. Click Build and select Desktop as the build target
5. In the pop-up warning click Replace

Expected results: The build process to create a folder where all files are placed or place all the files on the desktop
Actual results: Files on the desktop are deleted and 3 errors appear in the Console

Reproducible with: 2019.4.30f1, 2020.3.19f1, 2021.1.22f1, 2021.2.0b12, 2022.1.0a9

Notes:
- Deletes files that are on the desktop! Make sure to backup desktop files when trying to reproduce this issue.
- Unity needs to have iOS support to build to iOS Player.

Errors (full errors in the edit):
1. IOException: Access to the path '/Users/…/Desktop' is denied.
2. Build completed with a result of 'Failed' in 23 seconds (23271 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
3. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a15.
    Trying to build iOS Player to Desktop will cancel the build and an error will appear in the Console "Invalid build path".

  2. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2021.2.8f1

  3. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in 2020.3.27f1

  4. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed with 2019.4.35f1

Comments (2)

  1. E2049877348824e3a8f2d36ab455ba13?d=mm

    Dev_Sebas

    Mar 24, 2022 21:19

    Hello,

    I just lost my entire desktop on macOS using v2020.3.24f1, a very bad result, I'm really sad with all this situation, personal data and projects, client projects, I'm still trying to get into the new reality, plus I had no backup.

    Sebastião

  2. 8593c78fc93812d115a98b84c6615b2d?d=mm

    jeremyfryc

    Mar 06, 2022 02:54

    I have Unity version 2020.3.27f1 (in which this is supposedly fixed) and I lost everything. EVERYTHING ON MY DESKTOP! Can I stress how devastating this is? Photos of my daughter. Personal documents. EVERYTHING! What are you going to do for me to rectify this? C'mon Unity? I lost memories because of this. Not OK.

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.