I get the following error when trying to load my dissector on the same machine but different Instance of wireshark.
Couldn't load plugin 'gqi.so': dlopen(/Applications/Wireshark.app/Contents/PlugIns/wireshark/3-6/epan/gqi.so, 0x0002): tried: '/Applications/Wireshark.app/Contents/PlugIns/wireshark/3-6/epan/gqi.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
"have 'arm64'" means that the gqi plugin was compiled for ARM64, not for x86-64.
"need 'x86_64'" means that the different instance of Wireshark was probably compiled for x86-64.
Plugins built for one platform can't be loaded by programs built for the other platform.
As of Wireshark 3.6.3, we provide both x86-64 and ARM64 builds of Wireshark. If you want to use your plugin on ARM64-based Macs, I suggest you install the ARM64 3.6.3 build on those machines, if they currently have an x86-64 build installed on them.
(Unfortunately, at least the last time we tried, we couldn't arrange to build all the libraries that Wireshark requires as universal binaries; doing so would be a requirement for building a universal version of Wireshark.
In addition, we currently don't compile Qt ourselves, and it looks as if the Qt Company doesn't provide universal binaries of their libraries. Perhaps we could download both and combine them with lipo, but I don't think we've tried it.
So producing universal binaries would require a fair bit of work.)