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
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
-
ironictonic
Jul 20, 2023 01:24
This just happened to me on 2022.3.4f1 and wiped out almost my entire home folder. Lost everything in Download and Documents. WORST BUG EVER!
-
thia1995
May 12, 2023 09:18
I have Unity version 2021.3.24f1 and just lost the complete content of my documents folder on Mac due to iOS build. I just can't believe it.
@Unity is there any chance to get all these files back? And before anyone asks: now, I dont have a backup of these files!! -
wanderingstan_unity
Aug 25, 2022 10:56
I lost 2 years of files in my Downloads folder. I use it as my scratchpad and log of things worked on. Did not expect simply choosing the wrong folder when building an iOS app wreak such havoc in my work life.
This is a horrible bug. It is inexcusable for an application to casually *DELETE* 50+ gigs of data with no warning, and not following the basic guidelines of moving this data to the Trash instead of permanently deleting.
-
zindalp
Jul 14, 2022 14:04
I have Unity version 2021.3.6f. It deleted my all data in documents and download folders completely. This is worst bug ever i faced. I lost all data because of Unity, and this is not OK from you. shame on you guys.
-
cpkcpk
Jun 15, 2022 23:51
I just built an iOS project to my Downloads folder in 2021.3.4, and it has deleted 20GB of my data.
Client work, personal projects, family photos, everything. No recent backup as I've been away on holiday. Absolutely devastating.
This is maybe the worst bug I have ever experienced, you must fix this asap.
-
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
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- EditorUtility.DisplayDialog is not shown when Input.GetMouseButtonDown is called a second time
- Animator Enum Properties get set to 0 instead of the value specified in the Scene when the Property is animated by a State that is not playing
- [iOS] Background thread runs a few times slower when “application.targetFrameRate“ is set to 30 compared to 29 on some iOS devices
- Multiple Enum Flags not rendering correctly in the Editor when custom PropertyDrawer values are changed
- Harsh edges appear when raising the Terrain with a low opacity value brush
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".
Resolution Note (fix version 2021.2):
Fixed in 2021.2.8f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.27f1
Resolution Note (fix version 2019.4):
Fixed with 2019.4.35f1