无法将 .gpx 添加到 Xcode 以模拟位置变化

Can not add .gpx to Xcode to simulate location changes

我无法将 .gpx 文件添加到 xcode。我知道 xcode 需要特定的 .gpx 和 ,但对我没有任何作用。

我尝试过的:

1.

<gpx>
<wpt lat="52.529985" lon="13.403">
</wpt>
<wpt lat="52.529976" lon="13.403069">
</wpt>

2。 在此处添加 google routes/gps 点: https://labs.coruscantconsulting.co.uk/garmin/gpxgmap/mobiledev.php http://www.bikehike.co.uk/mapview.php

当我尝试将 .gpx 添加到 Debug/Simulate Location/Add GPX... 或 Product/Scheme.../Add GPX 时,我的 .gpx 文件总是灰色。有什么想法吗?

我猜你的 gpx 文件缺少某些部分,请尝试在 GPX Generator 创建一个文件并与你自己的文件进行比较。