Skip to content

libsfw not working on apple silicon #37

@TrickShotMLG02

Description

@TrickShotMLG02

I have installed this plugin on my MacBook Air M1 in unity 2021.3.38f1 and I cannot get it to work.

Below is the log

250530-09:23:59.814 TRACE [ 5] <ProcessWrapper>                    Running 'bash -c "/usr/libexec/path_helper"' in '/Users/******/Downloads/unity-project'
250530-09:24:00.040 TRACE [ 5] <NativeProcessTask`1>               OnEnd:  [Concurrent]
250530-09:24:00.041 TRACE [ 5] <IApplicationManager>               Existing Environment Path Original:/usr/bin:/bin:/usr/sbin:/sbin Updated:PATH="/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands"; export PATH;

250530-09:24:00.044 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git --version' in '/Users/******/Downloads/unity-project'
250530-09:24:00.269 TRACE [ 5] <GitVersionTask>                    OnEnd: git --version [Concurrent]
250530-09:24:00.271 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git-lfs version' in '/Users/******/Downloads/unity-project'
250530-09:24:00.545 TRACE [ 5] <GitLfsVersionTask>                 OnEnd: git lfs version [Concurrent]
250530-09:24:00.559 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --local --unset merge.unityyamlmerge.cmd' in '/Users/******/Downloads/unity-project'
250530-09:24:00.559 TRACE [ 7] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --get --global user.name' in '/Users/******/Downloads/unity-project'
250530-09:24:00.811 TRACE [ 7] <GitConfigGetTask>                  OnEnd: git config get [Concurrent]
250530-09:24:00.813 TRACE [16] <ActionTask`1>                      OnEnd: Then<System.String> [Concurrent]
250530-09:24:00.813 TRACE [16] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --get --global user.email' in '/Users/******/Downloads/unity-project'
250530-09:24:00.826 TRACE [ 5] <GitConfigUnSetTask>                OnEnd: config --local --unset merge.unityyamlmerge.cmd [Exclusive]
250530-09:24:00.831 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --local --unset merge.unityyamlmerge.trustExitCode' in '/Users/******/Downloads/unity-project'
250530-09:24:01.043 TRACE [16] <GitConfigGetTask>                  OnEnd: git config get [Concurrent]
250530-09:24:01.044 TRACE [16] <ActionTask`1>                      OnEnd: Then<System.String> [Concurrent]
250530-09:24:01.044 TRACE [16] <FuncTask`1>                        OnEnd: ThenFunc<Unity.VersionControl.Git.GitUser> [Concurrent]
250530-09:24:01.144 TRACE [ 5] <GitConfigUnSetTask>                OnEnd: config --local --unset merge.unityyamlmerge.trustExitCode [Exclusive]
250530-09:24:01.146 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --replace-all --local merge.unityyamlmerge.name "Unity SmartMerge (UnityYamlMerge)"' in '/Users/******/Downloads/unity-project'
250530-09:24:01.369 TRACE [ 5] <GitConfigSetTask>                  OnEnd: config --replace-all --local merge.unityyamlmerge.name "*********************************" [Exclusive]
250530-09:24:01.369 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --replace-all --local merge.unityyamlmerge.driver "'/Applications/Unity/Hub/Editor/2021.3.38f1/Unity.app/Contents/Tools/UnityYAMLMerge' merge -h -p --force %O %B %A %A"' in '/Users/******/Downloads/unity-project'
250530-09:24:01.592 TRACE [ 5] <GitConfigSetTask>                  OnEnd: config --replace-all --local merge.unityyamlmerge.driver "********************************************************************************************************************" [Exclusive]
250530-09:24:01.593 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git config --replace-all --local merge.unityyamlmerge.recursive "binary"' in '/Users/******/Downloads/unity-project'
250530-09:24:01.815 TRACE [ 5] <GitConfigSetTask>                  OnEnd: config --replace-all --local merge.unityyamlmerge.recursive "******" [Exclusive]
250530-09:24:01.816 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git lfs install' in '/Users/******/Downloads/unity-project'
250530-09:24:01.974 TRACE [ 1] <ActionTask`1>                      OnEnd: ThenInUI<Unity.VersionControl.Git.GitUser> [UI Thread]
250530-09:24:02.201 TRACE [ 5] <GitLfsInstallTask>                 OnEnd: git lsf install [Exclusive]
250530-09:24:02.222 ERROR [ 5] <RepositoryWatcher>                 
System.DllNotFoundException: libsfw assembly:<unknown assembly> type:<unknown type> member:(null)
  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 Unity.VersionControl.Git.RepositoryWatcher.Initialize () [0x0001a] in /Users/******/Downloads/unity-project/Library/PackageCache/[email protected]/Api/Git/RepositoryWatcher.cs:75 
250530-09:24:02.223  WARN [ 5] <RepositoryWatcher>                 NativeInterface is null
250530-09:24:02.224 ERROR [ 5] <IApplicationManager>               A problem ocurred setting up Git
System.InvalidOperationException: NativeInterface is null
  at Unity.VersionControl.Git.RepositoryWatcher.Start () [0x000df] in /Users/******/Downloads/unity-project/Library/PackageCache/[email protected]/Api/Git/RepositoryWatcher.cs:112 
  at Unity.VersionControl.Git.RepositoryManager.Start () [0x00000] in /Users/******/Downloads/unity-project/Library/PackageCache/[email protected]/Api/Git/RepositoryManager.cs:200 
  at Unity.VersionControl.Git.ApplicationManagerBase.RestartRepository () [0x00076] in /Users/******/Downloads/unity-project/Library/PackageCache/[email protected]/Api/Application/ApplicationManagerBase.cs:301 
  at Unity.VersionControl.Git.ApplicationManagerBase.<Run>b__12_0 () [0x00212] in /Users/******/Downloads/unity-project/Library/PackageCache/[email protected]/Api/Application/ApplicationManagerBase.cs:106 
250530-09:24:02.224 TRACE [ 5] <FuncTask`1>                        OnEnd: WithFunc<System.Boolean> [None]
250530-09:24:02.321 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.323 TRACE [ 1] <IApplicationManager>               Restarted /Users/******/Downloads/unity-project
250530-09:24:02.327 TRACE [ 1] <GitLocksCache>                     needsInvalidation isInitialized:False timedOut:True
250530-09:24:02.335 TRACE [16] <ProcessWrapper>                    Running '/opt/homebrew/bin/git lfs locks --json' in '/Users/******/Downloads/unity-project'
250530-09:24:02.362 TRACE [ 1] <GitStatusCache>                    needsInvalidation isInitialized:False timedOut:True
250530-09:24:02.368 TRACE [ 5] <ProcessWrapper>                    Running '/opt/homebrew/bin/git -c i18n.logoutputencoding=utf8 -c core.quotepath=false --no-optional-locks status -b -u --porcelain' in '/Users/******/Downloads/unity-project'
250530-09:24:02.571 TRACE [ 1] <ActionTask`1>                      OnEnd: ThenInUI<System.Boolean> [UI Thread]
250530-09:24:02.572 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.572 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.633 TRACE [ 5] <GitStatusTask>                     OnEnd: git status [Concurrent]
250530-09:24:02.634 TRACE [ 7] <ActionTask`1>                      OnEnd: Then<Unity.VersionControl.Git.GitStatus> [Concurrent]
250530-09:24:02.710 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.711 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.798 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:02.798 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:03.117 TRACE [16] <GitListLocksTask>                  OnEnd: git lfs locks [Concurrent]
250530-09:24:03.119 TRACE [16] <ActionTask`1>                      OnEnd: Then<System.Collections.Generic.List`1[Unity.VersionControl.Git.GitLock]> [Concurrent]
250530-09:24:03.216 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:03.217 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:03.222 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]
250530-09:24:03.222 TRACE [ 1] <ActionTask>                        OnEnd: ActionTask [UI Thread]

It seems like libsfw is the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions