diff --git a/natal.coffee b/natal.coffee index 61a5eae..ae8f96b 100644 --- a/natal.coffee +++ b/natal.coffee @@ -348,6 +348,10 @@ init = (projName, interfaceName) -> launch = ({name, device}) -> + unless device in getDeviceUuids() + log 'Device ID not available, defaulting to iPhone 6s simulator', 'yellow' + {device} = generateConfig name + log 'Compiling ClojureScript' exec 'lein cljsbuild once dev' @@ -394,6 +398,10 @@ getDeviceList = -> logErr 'Device listing failed: ' + message +getDeviceUuids = -> + getDeviceList().map (line) -> line.match(/\[(.+)\]/)[1] + + startRepl = (name) -> log 'Starting REPL' hasRlwrap =