Technically there is a serial cable you can buy for hobbyist/personal/internal use but "Under current Apple policy this cable may not be used with apps sold on the App Store." https://redpark.myshopify.com/products/serial-cable-l2-db9v