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
- Texture Sampling overlap causes graphical errors on specific Graphics APIs and Devices when using Framebuffer Fetch
- [Android] AssetBundle loading performance degradation when loading from a local Assetbundle
- [iOS][Android] Reflection with Generic Class returns unexpected values
- Shader Variant Collection Asset UI is hard to read when multiple Shaders and keywords are added
- Regression for "WebGL build is missing "malloc" and "free" functions when passing "-sERROR_ON_UNDEFINED_SYMBOLS=0" to emscriptenArgs"
Add comment