Can not build to iOS with unity 2022.1.0b10 beta

Hello every one,

After I update unity to 2022.1.0b10 beta then it can not build project to iOS (work normally for android build)

This following error showed, anyone have solution for this without revert to previous version of unity? Thanks very much!

Internal build system error. BuildProgram exited with code 87.
warning: Unknown file extension: androidlib
warning: Unknown file extension: androidlib
System.ArgumentException: You’re trying to copy to /Volumes/Data/Work/Unity/xxx/Libraries/Plugins/Android/GooglePlayGamesManifest.androidlib more than once. Previously from /Volumes/Data/Work/Unity/xxx/Assets/Plugins/Android/GooglePlayGamesManifest.androidlib/AndroidManifest.xml and now from /Volumes/Data/Work/Unity/xxx/Assets/Plugins/Android/GooglePlayGamesManifest.androidlib/project.properties
at Bee.Core.CopyTool.Setup(NPath target, NPath from)
at iOSPlayerBuildProgram.SetupTargetForInludedFile(IncludedFile file)
at iOSPlayerBuildProgram.AddProjectPlugin(NPath path, NPath absPath, String compileFlags, Boolean shouldAddToEmbeddedBinaries)
at iOSPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
at iOSPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection)
at System.Collections.Generic.List1.AddRange(IEnumerable1 collection)
at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupCopyPlugins() in /Users/bokken/buildslave/unity/build/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 537
at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild() in /Users/bokken/buildslave/unity/build/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 174
at iOSPlayerBuildProgram.SetupPlayerBuild()
at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() in /Users/bokken/buildslave/unity/build/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 168
at PlayerBuildProgramTypeWrapper.Run(String args)
at Program.Main(String args)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

You just have to watch for what your output says:

“warning: Unknown file extension: androidlib”

in my case it was “plugin” instead of “androidlib”.

Now go to your project, type “.androidlib” in your project-search-bar and look at the file/folder.

In your case it would be the “GooglePlayGamesManifest.androidlib” at “Libraries/Plugins/Android”.
If you click on it, you should see the “selected platforms”-list. Just deselect iOS → that solved it for me.

Have you found a solution by a chance? @Hoapv