GPX File does not load iOS Xcode

前端 未结 3 1035
别那么骄傲
别那么骄傲 2021-01-21 08:56

I am trying to simulate the locations, using a gpx file.

The file does not work in the Xcode nor does it show any error.

The file size is 1.1 MB , has a tracking

3条回答
  •  孤独总比滥情好
    2021-01-21 09:59

    Found the actual reason is few tags of the content in the GPX file is not supported by XCode.

    iOS does not support tags with tracking data.

    
            12
            
                
            
           
    
    

    So, get rid off all trk , trkseg tags. Now repleace trkpt with wpt.

    That's it and you will be able to see simulation of your path.

    Found the refernece at : http://deneymo.blogspot.com/2013/12/ios-customise-gps-path-for-simulator.html

    A GPX file with only wpt points can be created here . http://gpx-poi.com

    According to the following link https://developer.apple.com/library/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/CustomizingYourExperienceThroughXcodeSchemes/CustomizingYourExperienceThroughXcodeSchemes.html

    Xcode and Simulator support specifying a route as a series of waypoints using the GPX tag. The route () and track () tags are not supported.

提交回复
热议问题