Garmin simulator: no settings file

and monkeydo won't tell you why

· debugging, garmin, tooling

You build your Connect IQ widget. The PRG runs fine in the simulator. You go to Settings → Edit Application Properties Data... to tweak a value, and the editor pops up an alert: "No settings file found for this app. This app may not have settings."

Your resources/settings/settings.xml is right there. It has five settings, all valid. monkeyc builds without warnings.

What I checked first

The settings xml file is in the standard place: resources/settings/settings.xml. The properties file too: resources/settings/properties.xml. With the default jungle config (project.manifest = manifest.xml), Monkey C is supposed to find both under resources/ recursively.

Then I looked in out/:

out/MyApp.prg
out/MyApp-settings.json
out/MyApp.prg.debug.xml

A sidecar JSON sitting next to the PRG. With all five settings, fully typed, defaults intact. So the build is correct. The sidecar exists. The simulator just doesn't know where to look for it.

What monkeydo does and doesn't do

The Makefile's run target was just:

run: build simulator
	monkeydo $(APP_PRG) $(DEVICE)

monkeydo --help reveals an additional file flag:

Usage: monkeydo executable device_id [-n] [-a additional_file] [-t | -t test_name]
    additional_file - When providing the additionalFile flag you must specify one or more
                      additional files to send to the simulator in the form of '<source>:<dest>'.

So -a source:dest pushes a file into the simulator's virtual filesystem. The flag is documented. The destination convention is not.

I tried the obvious things:

-a out/MyApp-settings.json:settings.json
-a out/MyApp-settings.json:MyApp-settings.json
-a out/MyApp-settings.json:<app-uuid>-settings.json

None worked.

The Apple Silicon dead end

I had two machines: an Intel Mac where the VS Code Monkey C extension shows settings correctly, and an M3 where it doesn't. Same extension version (garmin.monkey-c-1.1.3), same DebugServer.jar. So I assumed the SDK was the difference. The Intel runs 7.1.1, the M3 was on 9.1.0.

I downgraded the M3 in steps: 9.1.0 → 8.4.1 → 8.1.0. The Makefile already followed current-sdk.cfg so this was a one-liner swap. None of them fixed it. I copied the 7.1.1 SDK from the Intel Mac over to the M3. Still broken.

Conclusion: it's not the SDK version. It's something arm64 specific, or something the VS Code extension does that gets lost in the brew-installed CLI binaries. I couldn't figure it out from this side, and I almost wrote the bug report.

The forum thread that solved it

A Garmin forum thread pointed at the answer. The simulator looks for the settings JSON at a fixed path inside its virtual filesystem:

GARMIN/Settings/<UPPERCASED_APP_NAME>-settings.json

Not next to the PRG. Not at the basename. At GARMIN/Settings/ with the bundle name uppercased. None of the docs mention this. monkeydo's help doesn't hint at it. The simulator's "No settings file found" error doesn't say where it looked.

The fix:

APP_SETTINGS := $(OUT_DIR)/MyApp-settings.json
SETTINGS_DEST := GARMIN/Settings/MYAPP-settings.json

run: build simulator
	monkeydo $(APP_PRG) $(DEVICE) -a $(APP_SETTINGS):$(SETTINGS_DEST)

One -a on the monkeydo call. The App Settings Editor immediately shows all five settings.

What I actually wanted

I want monkeydo to push the sidecar JSON it just built. The CLI emits the JSON during compile, knows the bundle name, knows where the simulator expects it. There is no good reason this should be a manual -a invocation with a destination path you can only find on a forum.

If you hit the same error, the answer is: the simulator's editor reads from a path nothing else knows about. Push the file there yourself.