diff --git a/lua/simctl/health.lua b/lua/simctl/health.lua new file mode 100644 index 0000000..1eecb8a --- /dev/null +++ b/lua/simctl/health.lua @@ -0,0 +1,13 @@ +local M = {} + +M.check = function() + vim.health.start("simctl") + local xcrun = vim.fn.executable("xcrun") ~= 0 + if xcrun then + vim.health.ok("xcrun command found in $PATH") + else + vim.health.error("xcrun command not found in $PATH. Is Xcode installed?") + end +end + +return M