Search Issue Tracker
Fix In Review for 2022.1.X
Votes
0
Found in
2020.3
2021.1
2021.2.0a14
2021.2.0b7
2022.1
Issue ID
1356978
Regression
Yes
[macOS] Microphone usage in script causes build to fail with ambiguous errors
1. Create a new project
2. Create a new script named "Example.cs"
3. Into the script file copy and paste example from here: https://docs.unity3d.com/ScriptReference/Microphone.Start.html
4. Save the script
5. Build the project
Expected result: the build succeeds or fails with an error that indicates that Player Settings require microphone usage description
Actual result: the build fails with ambiguous errors as seen below (important to read notes)
Reproducible with: 2021.2.0b7, 2021.2.0a14, 2022.1.0a5
Not reproducible with 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0a13
Notes:
1. The project only has one modification, which is a script set up using this example https://docs.unity3d.com/ScriptReference/Microphone.Start.html
2. The script does not even need to be included in a build for it to fail
3. Removing Microphone.Start(); in Example.cs script or adding microphone description in player settings resolves the errors
4. The errors are caused by the need to provide microphone usage description starting from 2020.1.0a18, however, errors became ambiguous at 2021.2.0a14 which I marked as regression
All build errors:
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002cc] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:193
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment