Unable to run on MacOS Monteray
I am using MacBook pro running MacOS Monterey [12.6.3 (21G419)]. I've download the osx-x64 version of release v2023.1.698 from the releases page, but when I attempt to run the program it fails. MacOS stops it due to being unable to verify it is free from malware. If I try to run with the dotnet command I get the following:
david@Davids-MacBook-Pro-2 seqcli-2023.1.698-osx-x64 % dotnet seqcli.dll help
Failed to load /Users/david/Downloads/seqcli-2023.1.698-osx-x64/libhostpolicy.dylib, error: dlopen(/Users/david/Downloads/seqcli-2023.1.698-osx-x64/libhostpolicy.dylib, 0x0001): tried: '/Users/david/Downloads/seqcli-2023.1.698-osx-x64/libhostpolicy.dylib' (code signature in <5473DD6C-5EA3-3051-9CC5-8F9237C171D8> '/Users/david/Downloads/seqcli-2023.1.698-osx-x64/libhostpolicy.dylib' not valid for use in process: library load disallowed by system policy)
An error occurred while loading required library libhostpolicy.dylib from [/Users/david/Downloads/seqcli-2023.1.698-osx-x64/]
Thanks for the report @CrossBound. I'll look into this and let you know what I find.
@KodrAus I got the same error on a M1 Pro with Ventura 13.3.1 and used dotnot 8 LTS pre release 3. Thanks for looking into this.
However my laptop has some compay policies on it, which might hinder the running of the software " not valid for use in process: library load disallowed by system policy)" think david has a similar error but do thus not know if this is due to dotnet an error in coding or a policy we might not able to change, out of the box at least it's not working.
Not a programmer here but this migth help. https://developer.apple.com/forums/thread/716918
Ah it's been a while since I've run into this so had forgotten all about the Apple codesigning stuff. If you run through (a boatload) of prompts to allow each native DLL then you can run the OSX builds natively, but we should look into signing them.
Has any resolution to this been implemented?
@CrossBound Thanks for the ping. Not as yet. I think we need to do some CI work to make this possible by porting to GitHub Actions, getting an Apple codesigning certificate, and using it to sign builds on an OSX runner.
Just a heads-up, dotnet tool install seqcli works on macOS without any limitations, and will get seqcli onto the path for you.
Hi again @CrossBound; we think dotnet tool install seqcli will be the long-term support mechanism for macOS. Does this work for your deployment? Thanks!
Reviewing again, we've decided for now to stop publishing macOS binaries. Both dotnet tool install --global seqcli and docker run --rm -it --network host datalust/seqcli work well on macOS, and have nice deployment/update support, so the value of additional signed binaries is reduced.