Hi there and welcome, I noticed that you are
coming from the madebyuppercut.com tutorial.
You might be interested in a new tool I created specially to make GPX files for Xcode and Android development environments.
Google Maps GPX
This tool accepts a link to a pre-made Google Directions and converts it to a GPX file format that can be uploaded and used in sat-nav and GPS units.
This tool is built by a GPS amateur, please treat the output with scrutiny.
* You can also use shortened urls, e.g. https://goo.gl/maps/TFxlI