github-for-unity / Unity

GitHub for Unity
https://unity.github.com/
MIT License
3.04k stars 448 forks source link

macOS files aren't signed #1134

Closed johnpryan closed 2 years ago

johnpryan commented 3 years ago

Description

I see a window saying "libsfw.bundle cannot be verified" on macOS 11 (Big Sur)

Screen Shot 2020-12-13 at 10 01 04 AM

Steps to Reproduce

  1. Open a Unity project on macOS 11
  2. Download and open github-for-unity-1.4.0.6503.unitypackage
  3. Open the GitHub panel by clicking Window -> GitHub
  4. Click initialize
  5. See that multiple errors are displayed like the one above

Log

201213-10:00:39.606  INFO [ 1] <Global>                            Initializing GitHubForUnity:'v1.4.0' Unity:'v2020.1.17f1'
201213-10:03:28.566 ERROR [126] <RepositoryWatcher>                 
System.DllNotFoundException: libsfw
  at (wrapper managed-to-native) sfw.net.UnixInterface+NativeCalls.NativeInterface_Create(string)
  at sfw.net.UnixInterface.Create (System.String path) [0x00000] in <a0fe88abb8ef4bd8af55b58dd70982d4>:0 
  at sfw.net.NativeMethods.Create (System.String path) [0x00005] in <a0fe88abb8ef4bd8af55b58dd70982d4>:0 
  at sfw.net.NativeInterface..ctor (System.String path) [0x00006] in <a0fe88abb8ef4bd8af55b58dd70982d4>:0 
  at GitHub.Unity.RepositoryWatcher.Initialize () [0x0001a] in C:\projects\unity\src\GitHub.Api\Events\RepositoryWatcher.cs:67 
=======
  at GitHub.Unity.RepositoryWatcher.Initialize () [0x00051] in C:\projects\unity\src\GitHub.Api\Events\RepositoryWatcher.cs:76 
  at GitHub.Unity.RepositoryManager.Initialize () [0x00000] in C:\projects\unity\src\GitHub.Api\Git\RepositoryManager.cs:186 
  at GitHub.Unity.ApplicationManagerBase.RestartRepository () [0x0004f] in C:\projects\unity\src\GitHub.Api\Application\ApplicationManagerBase.cs:343 
  at GitHub.Unity.ApplicationManagerBase.<InitializeRepository>b__22_0 () [0x001cf] in C:\projects\unity\src\GitHub.Api\Application\ApplicationManagerBase.cs:273 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
201213-10:03:28.569  WARN [126] <RepositoryWatcher>                 NativeInterface is null
johnpryan commented 3 years ago

A workaround is to make an exception for GateKeeper. Right-click open Assets/Plugins/GitHub/Editor/libsfw.bundle or open System Preferences -> Security and Privacy -> General and click allow

image