runtime: SerialPort is not supported on Mac Catalyst

From @trantamcdt92 on Tue, 06 Sep 2022 09:07:49 GMT

Steps to Reproduce

  1. Create a SerialPort class
  2. Configure the serial port settings
  3. Open the serial port

Expected Behavior

Can connect to device

Actual Behavior

Exception “System.DllNotFoundException: libSystem.IO.Ports.Native” occurred

Environment

Monterey, Visual Studio Preview

Version information

Build Logs

Example Project (If Possible)

Archive.zip

Copied from original issue xamarin/xamarin-macios#15874

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 27 (7 by maintainers)

Most upvoted comments

Any updates? It still doesn’t work on my mac (Ventura 13.4) … (Windows works perfectly)

@rolfbjarne Are you planning to support SerialPort on MacOS? if you are, when it will be officially released? I copied libSystem.IO.Ports.Native.dylib from Visual Studio (Preview) to my application and could communicate with my device. Is this safe to use it now?

It should be similar to #63187 + change @filipnavara suggested. I can take a look next week.