gusmanb / logicanalyzer

24 channel, 100Msps logic analyzer hardware and software
GNU General Public License v3.0
1.71k stars 210 forks source link

osx-arm #37

Closed tcurdt closed 1 year ago

tcurdt commented 1 year ago

The releases only list osx-x86 but theses days osx-arm is really needed as well. Would be nice to also have that option.

gusmanb commented 1 year ago

This is developed in .net 6.0 and it does not support osx-arm, only osx-x86, and as far as I know (I don't use MacOs) any x86 application should be supported in arm machines using Rosetta 2.

Have you tried this using Rosetta 2 and found any problem? If that's the case then please open a bug and I will check for it.

Cheers.

tcurdt commented 1 year ago

I didn't try it for logicanalyzer. Rosetta 2 should hopefully be a somewhat acceptable fallback - for now. But it really isn't a long term solution.

Looking at https://dotnet.microsoft.com/en-us/download/dotnet/6.0 it seems like there is arm support for dotnet. Hence I was hoping for a fully native release.

gusmanb commented 1 year ago

Well, this is a happy coincidence, I just updated VS2022 from version 17.3 to 17.4.4 to add support for the new .net 7.0 SDK and now it lets me to build packages targeting osx-arm64, in fact I have now a ton more of targets like linux-arm64 (it had only arm in the previous version), windows-arm (besides windows-arm64) and so on, it seems that the framework indeed do support it but was Visual Studio the one that was not letting me to target them, not sure if it was my installation that was screwed or that the target has been added recently.

I will create the packages with the next release.

Cheers.

gusmanb commented 1 year ago

New release launched with many new targets including MacOSX-ARM64

tcurdt commented 1 year ago

I just downloaded the zip - but while QLCapture is recognized as executable

$ file CLCapture       
CLCapture: Mach-O 64-bit executable arm64

it does not start at all.

gusmanb commented 1 year ago

Need more info as I don't have any mac around to test it... Does it provide any error message? Have you sent any parameter? Have you tried to execute it as privileged user?

tcurdt commented 1 year ago

TBH there isn't much to share.

$ ./CLCapture 
[1]    62402 killed     ./CLCapture
$ otool -L ./CLCapture 
./CLCapture:
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1200.3.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)

Executing as privileged user "isn't really a thing" on macOS. But starting it with "sudo" gives the same result.

This is on 12.6.3 on arm.

gusmanb commented 1 year ago

"sudo" is "superuser do", what means to execute the program as a user with privileged permissions... that's a *nix thing common to all derivates :)

From the message looks like something killed the app, not an app crash. Have you tried the GUI app? This may give a bit more info, maybe this is a problem with .net and arm64, I have never used it so checking if the GUI app causes the same problem can at least point to a direction.

Cheers.

tcurdt commented 1 year ago

that's a *nix thing common to all derivates :)

That's why I did it ;) But it's not something you would commonly do on macOS.

From the message looks like something killed the app, not an app crash

Maybe it could be signing related. But that would usually pop up a security dialog. It's a bit weird. I have never seen such behaviour before.

From the message looks like something killed the app, not an app crash. Have you tried the GUI app?

What is "the GUI app"? I can't see anything in the dir that looks like a candidate.

CLCapture:                                             Mach-O 64-bit executable arm64
CLCapture.deps.json:                                   JSON data
CLCapture.dll:                                         PE32+ executable (console) Aarch64 Mono/.Net assembly, for MS Windows
CLCapture.pdb:                                         Microsoft Roslyn C# debugging symbols version 1.0
CLCapture.runtimeconfig.json:                          JSON data
CommandLine.dll:                                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
Microsoft.CSharp.dll:                                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
Microsoft.VisualBasic.Core.dll:                        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
Microsoft.VisualBasic.dll:                             PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
Microsoft.Win32.Primitives.dll:                        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
Microsoft.Win32.Registry.dll:                          PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
SharedDriver.dll:                                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
SharedDriver.pdb:                                      Microsoft Roslyn C# debugging symbols version 1.0
System.AppContext.dll:                                 PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Buffers.dll:                                    PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Collections.Concurrent.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Collections.Immutable.dll:                      PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Collections.NonGeneric.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Collections.Specialized.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Collections.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.ComponentModel.Annotations.dll:                 PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.ComponentModel.DataAnnotations.dll:             PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.ComponentModel.EventBasedAsync.dll:             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.ComponentModel.Primitives.dll:                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.ComponentModel.TypeConverter.dll:               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.ComponentModel.dll:                             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Configuration.dll:                              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Console.dll:                                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Core.dll:                                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Data.Common.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Data.DataSetExtensions.dll:                     PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Data.dll:                                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Diagnostics.Contracts.dll:                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Diagnostics.Debug.dll:                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Diagnostics.DiagnosticSource.dll:               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.FileVersionInfo.dll:                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.Process.dll:                        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.StackTrace.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.TextWriterTraceListener.dll:        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.Tools.dll:                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Diagnostics.TraceSource.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Diagnostics.Tracing.dll:                        PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Drawing.Primitives.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Drawing.dll:                                    PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Dynamic.Runtime.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Formats.Asn1.dll:                               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Globalization.Calendars.dll:                    PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Globalization.Extensions.dll:                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Globalization.dll:                              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.Compression.Brotli.dll:                      PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.Compression.FileSystem.dll:                  PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.Compression.ZipFile.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.Compression.dll:                             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.FileSystem.AccessControl.dll:                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.FileSystem.DriveInfo.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.FileSystem.Primitives.dll:                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.FileSystem.Watcher.dll:                      PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.FileSystem.dll:                              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.IsolatedStorage.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.MemoryMappedFiles.dll:                       PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.Pipes.AccessControl.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.Pipes.dll:                                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.IO.Ports.dll:                                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.UnmanagedMemoryStream.dll:                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.IO.dll:                                         PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Linq.Expressions.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Linq.Parallel.dll:                              PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Linq.Queryable.dll:                             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Linq.dll:                                       PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Memory.dll:                                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Http.Json.dll:                              PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Http.dll:                                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.HttpListener.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Mail.dll:                                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.NameResolution.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.NetworkInformation.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Ping.dll:                                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Primitives.dll:                             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Quic.dll:                                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Requests.dll:                               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Security.dll:                               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.ServicePoint.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.Sockets.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.WebClient.dll:                              PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.WebHeaderCollection.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.WebProxy.dll:                               PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.WebSockets.Client.dll:                      PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.WebSockets.dll:                             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Net.dll:                                        PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Numerics.Vectors.dll:                           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Numerics.dll:                                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.ObjectModel.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Private.CoreLib.dll:                            PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Private.DataContractSerialization.dll:          PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Private.Uri.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Private.Xml.Linq.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Private.Xml.dll:                                PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Reflection.DispatchProxy.dll:                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Reflection.Emit.ILGeneration.dll:               PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Reflection.Emit.Lightweight.dll:                PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Reflection.Emit.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Reflection.Extensions.dll:                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Reflection.Metadata.dll:                        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Reflection.Primitives.dll:                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Reflection.TypeExtensions.dll:                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Reflection.dll:                                 PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Resources.Reader.dll:                           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Resources.ResourceManager.dll:                  PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Resources.Writer.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.CompilerServices.Unsafe.dll:            PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.CompilerServices.VisualC.dll:           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.Extensions.dll:                         PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.Handles.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.InteropServices.RuntimeInformation.dll: PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.InteropServices.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.Intrinsics.dll:                         PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.Loader.dll:                             PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.Numerics.dll:                           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.Serialization.Formatters.dll:           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.Serialization.Json.dll:                 PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.Serialization.Primitives.dll:           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Runtime.Serialization.Xml.dll:                  PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.Serialization.dll:                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Runtime.dll:                                    PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Security.AccessControl.dll:                     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Claims.dll:                            PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.Algorithms.dll:           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.Cng.dll:                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.Csp.dll:                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.Encoding.dll:             PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.OpenSsl.dll:              PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.Primitives.dll:           PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Cryptography.X509Certificates.dll:     PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Principal.Windows.dll:                 PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Security.Principal.dll:                         PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Security.SecureString.dll:                      PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Security.dll:                                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.ServiceModel.Web.dll:                           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.ServiceProcess.dll:                             PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Text.Encoding.CodePages.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Text.Encoding.Extensions.dll:                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Text.Encoding.dll:                              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Text.Encodings.Web.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Text.Json.dll:                                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Text.RegularExpressions.dll:                    PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Threading.Channels.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Threading.Overlapped.dll:                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.Tasks.Dataflow.dll:                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Threading.Tasks.Extensions.dll:                 PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.Tasks.Parallel.dll:                   PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Threading.Tasks.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.Thread.dll:                           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.ThreadPool.dll:                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.Timer.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Threading.dll:                                  PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Transactions.Local.dll:                         PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Transactions.dll:                               PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.ValueTuple.dll:                                 PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Web.HttpUtility.dll:                            PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Web.dll:                                        PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Windows.dll:                                    PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.Linq.dll:                                   PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.ReaderWriter.dll:                           PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.Serialization.dll:                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.XDocument.dll:                              PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.XPath.XDocument.dll:                        PE32+ executable (DLL) (console) Mono/.Net assembly, for MS Windows
System.Xml.XPath.dll:                                  PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.XmlDocument.dll:                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.XmlSerializer.dll:                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.Xml.dll:                                        PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
System.dll:                                            PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
WindowsBase.dll:                                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
createdump:                                            Mach-O 64-bit executable arm64
libSystem.Globalization.Native.dylib:                  Mach-O 64-bit dynamically linked shared library arm64
libSystem.IO.Compression.Native.dylib:                 Mach-O 64-bit dynamically linked shared library arm64
libSystem.IO.Ports.Native.dylib:                       Mach-O 64-bit dynamically linked shared library arm64
libSystem.Native.dylib:                                Mach-O 64-bit dynamically linked shared library arm64
libSystem.Net.Security.Native.dylib:                   Mach-O 64-bit dynamically linked shared library arm64
libSystem.Security.Cryptography.Native.Apple.dylib:    Mach-O 64-bit dynamically linked shared library arm64
libSystem.Security.Cryptography.Native.OpenSsl.dylib:  Mach-O 64-bit dynamically linked shared library arm64
libclrjit.dylib:                                       Mach-O 64-bit dynamically linked shared library arm64
libcoreclr.dylib:                                      Mach-O 64-bit dynamically linked shared library arm64
libdbgshim.dylib:                                      Mach-O 64-bit dynamically linked shared library arm64
libhostfxr.dylib:                                      Mach-O 64-bit dynamically linked shared library arm64
libhostpolicy.dylib:                                   Mach-O 64-bit dynamically linked shared library arm64
libmscordaccore.dylib:                                 Mach-O 64-bit dynamically linked shared library arm64
libmscordbi.dylib:                                     Mach-O 64-bit dynamically linked shared library arm64
mscorlib.dll:                                          PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
netstandard.dll:                                       PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows
gusmanb commented 1 year ago

The CLCapture app is a command-line application only, it is for the cases that you may want to use the logic analyzer exclusively with sigrok or you don't have a graphical OS like a linux without any desktop manager, but the real application is the one called "LogicAnalyzer", it is a full fledged GUI for the device and a lot more versatile than the CL.

It is all on the releases section but here is the link to the osx-arm64 one: https://github.com/gusmanb/logicanalyzer/releases/download/V2.1.1.0/LogicAnalyzer-2.1.1.0-osx-arm64.zip

gusmanb commented 1 year ago

Ok, I have found info about the problem, it is in fact a problem with code sign: https://github.com/dotnet/runtime/issues/79267

It has been a long time since I developed anything on mac but if I recall it right you need to have a developer account with Apple to do codesign, and I'm not going to pay 100€ just because apple wants it :P

You can try the steps proposed in the solution but if you don't have a developer license I doubt you will be able to sign the application:

# remove apple quarantine attribute
$ xattr -d com.apple.quarantine CLCapture

# set executable bit
$ chmod +x ./CLCapture

# code sign it
$ codesign --force --deep -s - ./CLCapture

Cheers.

tcurdt commented 1 year ago

OK. I didn't realize there are two difference artifact downloads. My mistake!

Seems like all dylibs have to be removed from quarantine. Not ideal - but I was then able to start the application. 🎉

IIRC it used to be that an Apple account for signing was free - you could just not submit to the AppStore then. But that might have changed.

Anyway - at least now it's clear how to get it running :) Thanks for the help.

gusmanb commented 1 year ago

There might be an intermediate solution, but I need to learn how to use Github Actions, it provides a build environment and it supports macOS as runner, it will sign the application with a self-signed certificate, it will not run at a first but at least it will show the warning about unknown developer and then from the finder you can open it with the context menu.

When I get some time and feel better I will give it a try.

Cheers!