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
- Template is opened in Isolation when opening it in Context and users Save the UI Document when prompted to do so in UI Builder
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
Add comment