ORSSerialPort is a good open source framework but it does not work with tty devices.
Here is link to much simpler library that is not dependant in iokit and it does work just as well with virtual tty devices just as much as with physical serial devices.
https://github.com/kpishere/POSIXSerialPort