According to Table 4-7 in the Entitlement Key Reference, you can access serial ports via the
com.apple.security.device.serial. I’ve not tried this myself but I suggest you take it for a spin and see where it takes you.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"