Skip to content

Commit

Permalink
[WatchKit] Get watch app to launch in the simulator.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy authored and Watson1978 committed Dec 11, 2014
1 parent dbd9a8d commit e907240
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/motion/project/template/ios-watch-extension.rb
Expand Up @@ -84,8 +84,8 @@ def pre_build_actions(platform)
desc "Run the simulator"
task :simulator do
config = App.config.watch_app_config
app = config.embedded_app_bundle
app_executable = File.expand_path(config.embedded_app_bundle_executable)
app = config.app_bundle('iPhoneSimulator')
app_executable = File.expand_path(config.app_bundle_executable('iPhoneSimulator'))

if ENV['TMUX']
tmux_default_command = `tmux show-options -g default-command`.strip
Expand Down Expand Up @@ -115,7 +115,7 @@ def pre_build_actions(platform)
env << " RM_BUILT_EXECUTABLE=\"#{app_executable}\""
env << ' SIM_SPEC_MODE=1' if App.config.spec_mode
sim = File.join(App.config.bindir, 'ios/sim')
debug = (ENV['debug'] ? 1 : 0)
debug = (ENV['debug'] ? 1 : 2)
app_args = (ENV['args'] or '')
App.info 'Simulate', app
at_exit { system("stty echo") } if $stdout.tty? # Just in case the simulator launcher crashes and leaves the terminal without echo.
Expand Down

0 comments on commit e907240

Please sign in to comment.