NMEALink
This app replaces a USB GPS receiver. NMEALink reads GPS and accelerometer from your iPhone/iPad, and forwards NMEA frames ($GPRMC and $GPHDT) to a navigation software (OpenCPN ...) running in your MacBook, using IP/UDP over Bluetooth, Wifi or USB. You just have to configure the Connexion Sharing be