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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment