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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment