superunitybuild / buildtool

A powerful automation tool for quickly and easily generating builds with Unity.
MIT License
1.19k stars 121 forks source link

System.Exception: Cannot sign <path> because it is not a valid Mach-O binary. #110

Closed 3ternal closed 1 year ago

3ternal commented 1 year ago

I've been getting an error in Mac builds after upgrading to 6.0.0 (this occurs in 6.0.1 as well). The error occurs at the end of the build. Full message:

Building C:\gamedev\unity\Builds\internal-1.0\monospaced-lovers-internal-1.0-macOS\Monospaced Lovers\Monospaced Lovers.app\Contents\PlugIns\MicrophoneUtility_macos.dylib failed with output:
System.Exception: Cannot sign 'C:/gamedev/unity/Builds/internal-1.0/monospaced-lovers-internal-1.0-macOS/Monospaced Lovers/Monospaced Lovers.app/Contents/PlugIns/MicrophoneUtility_macos.dylib' because it is not a valid Mach-O binary.
   at MacOSCodeSignDylibCopy.Run(CSharpActionContext ctx, SignFlags signFlags)
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)
SuperUnityBuild.BuildTool.BuildProject:BuildPlayer (string,SuperUnityBuild.BuildTool.BuildReleaseType,SuperUnityBuild.BuildTool.BuildPlatform,SuperUnityBuild.BuildTool.BuildArchitecture,SuperUnityBuild.BuildTool.BuildScriptingBackend,SuperUnityBuild.BuildTool.BuildDistribution,System.DateTime,UnityEditor.BuildOptions,string) (at Library/PackageCache/com.github.superunitybuild.buildtool@6.0.1/Editor/Build/BuildProject.cs:461)

Any thoughts? I'm on Unity 2021.3.4.

3ternal commented 1 year ago

I reverted to 5.0.4 for now.

3ternal commented 1 year ago

Confirmed that the error was due to a different problem (something involving the Epic Game Store SDK).

robinnorth commented 1 year ago

Thanks for the update @3ternal! Glad you were able to figure out the source of the issue.