The following code crashes the simulator by using the back button in the settings view.
This implementation creates a settings view without any function to give the user a hint that the settings can be found in the mobile app:
function getSettingsView() { var menu = new WatchUi.Menu2({:title=>"titel"}); menu.addItem(new WatchUi.MenuItem("label", "subLabel", null, null)); return [menu, new WatchUi.Menu2InputDelegate()]; }
Crash log of the simulator in the console:
Error: Symbol Not Found Error Details: Could not find symbol 'Toybox' Stack: - onBack() at /Users/rayburn/projects/toolchain5/mbsimulator/submodules/technology/monkeybrains/virtual-machine/api/WatchUi.mb:3259 0x30004bd9
On device (F6X) everythings works fine - no crash.