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 between your Mac and your iPhone.
For information, IP addresses commonly seen between an iPhone and a MacBook (OSX Maverick) are :
For Bluetooth : 22.214.171.124
For USB : 126.96.36.199
For Wifi : 188.8.131.52
Tip : to know the Mac IP address, type 'ifconfig' in your MacBook shell.