kkharji / xbase

Develop Apple software products within your favorite editor.
MIT License
533 stars 17 forks source link

Warn when all the configured runners are not supported in current projects #181

Closed kkharji closed 1 year ago

kkharji commented 1 year ago

There a configuration option to limit the devices for apple platforms:

e.g.

simctl = {
   iOS = {
      "iPhone 13 Pro",
   },
}

However, this is problematic when the configuration get outdated. While testing fixes for #178, I kept getting no runners for Run picker, while print(vim.inspect(require('xbase.state'))) shows a list of devices. It turned out that I had "iPhone 12 Pro" in simctl.iOS which is outdate.

Therefore, in editors, when there are runners available but the configured value lead to have empty list, the editor should raise warning to user with the available runners for the project.