Courses/Track on simulator

Former Member
Former Member
Hi,

Is there a way to test if I can get the different routes, or track, on the simulator. Since I'm unable to debug on device (while attached to the Mac) it's kinda hard to just list the routes. So ideally I would need to find a way to add routes to the simulator, so that I can test this functionality.

Thank you!
  • It's been a while since I did anything with this, but if I recall:

    To get things in the sim, you can use makeWebRequest and pull down a fit or GPX (type based on the device), or you can copy some off the watch into the sim's temp directory into the proper folder (such as "courses"). On windows, this is %tmp%/garmin.

    Once available in the sim, you can use PersistedContent to see what's there.
  • Hey, who can tell me where to find the temp directory for the simulator on a MacOS system?

  • I have exactly the same problem. Did you ever find out where fit files are stored on a Mac for the simulator 

  • It's $TMPDIR/com.garmin.connectiq.

    e.g.

    1) Open Terminal.app

    2) Change to the simulator's temp folder by typing:

    cd $TMPDIR/com.garmin.connectiq

    3) Open this folder in finder by typing:

    open .

    The folder structure looks similar to what you'd find on a real watch:

    GARMIN
    |
    |---- Activities
    |---- APPS
    |---- Courses
    |---- Debug
    |---- GPX
    |---- Locations

    |---- NewFiles
    |---- Settings
    |---- Sports
    |---- Workouts
    ...

    I haven't tested it in the sim, but you should be able to load a FIT course by either copying it to NewFiles or Courses. (If you copy it to NewFiles, it should be moved to the appropriate folder -- at least that's how it would work on a real device.)

    EDIT: As mentioned elsewhere, sometimes this folder gets deleted (or doesn't exist in the first place). Running an app in the simulator should recreate it