Modified gpx.fmt file capable of reading geotags for iPhone photographs.  Can be used as follows:

exiftool -r -if '$gpslatitude' -fileOrder datetimeoriginal -d %Y-%m-%dT%H:%M:%SZ -p gpx.fmt folder > out.gpx