Xcode 5.1 / Simulator 7.1 / Mavericks 10.9.2 issues

3,850 views
Skip to first unread message

Jani Jegoroff

unread,
Mar 11, 2014, 7:48:41 AM3/11/14
to calaba...@googlegroups.com
Is anyone able to run tests in Xcode 5.1, Simulator 7.1 and Mavericks 10.9.2 setup?

I am trying to launch calabash-ios-example application from console and here is the output.

Environment:

Janis-MacBook-Air:calabash-ios-example janijegoroff$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
Janis-MacBook-Air:calabash-ios-example janijegoroff$ xcodebuild -version
Xcode 5.1
Build version 5B130a
Janis-MacBook-Air:calabash-ios-example janijegoroff$ calabash-ios version
0.9.167

Console log:

Janis-MacBook-Air:calabash-ios-example janijegoroff$ DEBUG=1 DEVICE=ipad calabash-ios console
Running irb...
irb(main):001:0> start_test_server_in_background
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.lesspainful.example.LPSimpleExample-cal", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.1.4/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/run_loop.out
timeout=30
args=[]
Preparation took 0.030234 seconds

### Starting on simulator App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app ###
2014-03-11 11:28:22 +0000 instruments -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1qthysv/run_loop.out
timeout=30
args=[]
Found instruments 13484. Killing...
Found instruments 13485. Killing...
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.lesspainful.example.LPSimpleExample-cal", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.1.4/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/run_loop.out
timeout=30
args=[]
Preparation took 0.06926 seconds

### Starting on simulator App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app ###
2014-03-11 11:28:24 +0000 instruments -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1k3rl3c/run_loop.out
timeout=30
args=[]
Found instruments 13504. Killing...
Found instruments 13505. Killing...
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.lesspainful.example.LPSimpleExample-cal", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.1.4/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/run_loop.out
timeout=30
args=[]
Preparation took 0.066899 seconds

### Starting on simulator App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app ###
2014-03-11 11:28:26 +0000 instruments -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dkvq1y/run_loop.out
timeout=30
args=[]
Found instruments 13524. Killing...
Found instruments 13525. Killing...
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.lesspainful.example.LPSimpleExample-cal", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.1.4/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/run_loop.out
timeout=30
args=[]
Preparation took 0.067831 seconds

### Starting on simulator App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app ###
2014-03-11 11:28:28 +0000 instruments -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287 -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-dvv287/run_loop.out
timeout=30
args=[]
Found instruments 13544. Killing...
Found instruments 13545. Killing...
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.lesspainful.example.LPSimpleExample-cal", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.1.4/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/run_loop.out
timeout=30
args=[]
Preparation took 0.075021 seconds

### Starting on simulator App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app ###
2014-03-11 11:28:29 +0000 instruments -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3 -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/LPSimpleExample-emghwlhpigfgrmdtrvdcnokacdxt/Build/Products/Debug-iphonesimulator/LPSimpleExample-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/run_loop.out
timeout=30
args=[]
Calabash::Cucumber::Launcher::StartError: Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop to Start.
 Logfile /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/run_loop.out

 2014-03-11 11:28:31.293 ScriptAgent[13568:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-03-11 11:28:31.294 ScriptAgent[13568:3107] CLTilesManagerClient: init
2014-03-11 11:28:31.294 ScriptAgent[13568:3107] CLTilesManagerClient: reconnecting, 0x10b7130b0
2014-03-11 11:28:31.313 ScriptAgent[13568:3107] AXError: Could not auto-register for pid status change
2014-03-11 11:28:31.316 ScriptAgent[13568:3107] Failed to enable accessiblity, kAXErrorServerNotFound

from /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/launcher.rb:386:in `new_run_loop'
from /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/launcher.rb:313:in `relaunch'
from /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/core.rb:383:in `start_test_server_in_background'
from (irb):1
from /Users/janijegoroff/.rbenv/versions/2.0.0-p353/bin/irb:12:in `<main>'
irb(main):002:0> quit

run_loop.out log:

Janis-MacBook-Air:calabash-ios-example janijegoroff$ cat /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/run_loop.out
2014-03-11 11:28:31.293 ScriptAgent[13568:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-03-11 11:28:31.294 ScriptAgent[13568:3107] CLTilesManagerClient: init
2014-03-11 11:28:31.294 ScriptAgent[13568:3107] CLTilesManagerClient: reconnecting, 0x10b7130b0
2014-03-11 11:28:31.313 ScriptAgent[13568:3107] AXError: Could not auto-register for pid status change
2014-03-11 11:28:31.316 ScriptAgent[13568:3107] Failed to enable accessiblity, kAXErrorServerNotFound
2014-03-11 11:28:31.680 instruments[13564:6227] Automation Instrument ran into an exception while trying to run the script.  UIAScriptAgentSignaledException
2014-03-11 11:28:31 +0000 Fail: An error occurred while trying to run the script.
Instruments Trace Complete (Duration : 2.291366s; Output : /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-13446-1kmsmk3/trace.trace)
Janis-MacBook-Air:calabash-ios-example janijegoroff$

Karl Krukow

unread,
Mar 11, 2014, 7:59:06 AM3/11/14
to calaba...@googlegroups.com
I've run on Xcode 5.1 with iOS 7.1 sim, but I was using OS X 10.8.5. I'll look into figuring out if Mavericks is causing problems.


- Karl

--
You received this message because you are subscribed to the Google Groups "calabash-ios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-ios...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jani Jegoroff

unread,
Mar 11, 2014, 9:22:51 AM3/11/14
to calaba...@googlegroups.com
Thanks Karl, I was able to start sample app and test. I just changed wifi connection to another one.

Anyway, the same error still happening very often. In this case I executed sample test successfully two times, closed simulator manually and started test again >> failed
Very strange...

Janis-MacBook-Air:calabash-ios-example janijegoroff$ cucumber
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: Example steps                            # features/my_first.feature:6
    Given I am on the Welcome Screen                 # features/step_definitions/my_first_steps.rb:1
    Then I swipe left                                # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:234
    And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:165
    And take picture                                 # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:229

1 scenario (1 passed)
4 steps (4 passed)
0m6.184s
Janis-MacBook-Air:calabash-ios-example janijegoroff$ cucumber
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: Example steps                            # features/my_first.feature:6
    Given I am on the Welcome Screen                 # features/step_definitions/my_first_steps.rb:1
    Then I swipe left                                # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:234
    And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:165
    And take picture                                 # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:229

1 scenario (1 passed)
4 steps (4 passed)
0m6.289s
Janis-MacBook-Air:calabash-ios-example janijegoroff$ cucumber
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: Example steps                            # features/my_first.feature:6
  Calabash::Cucumber::Launcher::StartError: Time out waiting for UIAutomation run-loop to Start.
   Logfile /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-4687-4th8wx/run_loop.out

   2014-03-11 13:06:48.461 ScriptAgent[4844:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
  2014-03-11 13:06:48.461 ScriptAgent[4844:3107] CLTilesManagerClient: init
  2014-03-11 13:06:48.461 ScriptAgent[4844:3107] CLTilesManagerClient: reconnecting, 0x10a4139f0
  2014-03-11 13:06:48.478 ScriptAgent[4844:3107] AXError: Could not auto-register for pid status change
  2014-03-11 13:06:48.482 ScriptAgent[4844:3107] Failed to enable accessiblity, kAXErrorServerNotFound

   (Calabash::Cucumber::Launcher::StartError)
  /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/launcher.rb:386:in `new_run_loop'
  /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/launcher.rb:313:in `relaunch'
  /Users/janijegoroff/calabash-ios-example/features/support/01_launch.rb:29:in `Before'
    Given I am on the Welcome Screen                 # features/step_definitions/my_first_steps.rb:1
    Then I swipe left                                # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:234
    And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:165
    And take picture                                 # calabash-cucumber-0.9.167/features/step_definitions/calabash_steps.rb:229

Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps

1 scenario (1 failed)
4 steps (4 skipped)
0m12.998s

This is also something I see quite often in run_loop.out log:

Janis-MacBook-Air:calabash-ios-example janijegoroff$ cat /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-5476-78uj8j/run_loop.out
2014-03-11 13:09:37.194 ScriptAgent[5631:3007] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-03-11 13:09:37.194 ScriptAgent[5631:3007] CLTilesManagerClient: init
2014-03-11 13:09:37.195 ScriptAgent[5631:3007] CLTilesManagerClient: reconnecting, 0x10a500370
2014-03-11 13:09:37.206 ScriptAgent[5631:3007] AXError: Could not auto-register for pid status change
2014-03-11 13:09:37.209 ScriptAgent[5631:3007] Failed to enable accessiblity, kAXErrorServerNotFound
2014-03-11 13:09:38.140 ScriptAgent[5634:3007] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-03-11 13:09:38.141 ScriptAgent[5634:3007] CLTilesManagerClient: init
2014-03-11 13:09:38.141 ScriptAgent[5634:3007] CLTilesManagerClient: reconnecting, 0x10a40eca0
2014-03-11 13:09:38.144 ScriptAgent[5634:3007] Unable to connect to address: tcp://127.0.0.1:49946
2014-03-11 13:09:38 +0000 Fail: The target application appears to have died
Instruments Trace Complete (Duration : 3.299111s; Output : /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140311-5476-78uj8j/trace.trace)

Jani Jegoroff

unread,
Mar 11, 2014, 9:52:37 AM3/11/14
to calaba...@googlegroups.com
RESET_BETWEEN_SCENARIOS issue: 

Janis-MacBook-Air:calabash-ios-example janijegoroff$ RESET_BETWEEN_SCENARIOS=1 cucumber
Feature: Running a test
  As an iOS developer
  I want to have a sample feature file
  So I can begin testing quickly

  Scenario: Example steps                            # features/my_first.feature:6
sh: line 1: 10001 Trace/BPT trap: 5       /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/sim_launcher-0.4.6/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
find: /Users/janijegoroff/Library/Application Support/iPhone Simulator/Library/Applications: No such file or directory
find: /Users/janijegoroff/Library/Application Support/iPhone Simulator/User/Applications: No such file or directory

Joshua Moody

unread,
Mar 12, 2014, 5:11:13 AM3/12/14
to calaba...@googlegroups.com
Thanks for reporting.

We are aware of this issue and are working on a fix.

As a workaround, go to the Settings.app > General > Accessibility and enable Accessibility Inspector

Just like old times.

Here are the steps to reproduce:  https://gist.github.com/jmoody/deaa92b2d35ebd1611b4

I showed that gist to Karl and within 5 minutes he had reproduced the problem and in another 10 he was working on a solution.

I mention this because it demonstrates how quickly bugs/features get attention if you have:

1. a sample project
2. steps to reproduce

Cheers,

jjm

Nicholas Black

unread,
Mar 13, 2014, 11:45:03 AM3/13/14
to calaba...@googlegroups.com
My xCode updated automatically last night and now I'm seeing this too.

Thanks for addressing it so quickly guys- and detailing the workaround!

Jeff Hatfield

unread,
Mar 13, 2014, 12:08:45 PM3/13/14
to calaba...@googlegroups.com
Add another person experiencing this issue. 
Unfortunately the Accessibility Inspector didn't help. However my problem seems to be a little different:
I'm able to run my tests in my app as long as the app isn't in focus on the screen of the simulator when I run the test. Though if I run a test while the app is up on the screen, it will close and return to a black screen. I can get out of this by using 'Home' under Hardware at the top. So it looks like it's running. It's just the resetting of the application that's causing the problem. 

Jeff Hatfield

unread,
Mar 14, 2014, 2:23:37 PM3/14/14
to calaba...@googlegroups.com
Is there any update on this?

Peter Hodgson

unread,
Mar 14, 2014, 2:42:28 PM3/14/14
to calaba...@googlegroups.com
I released a new version of the sim_launcher gem (0.4.9 I believe) yesterday which should fix some of these issues.


On Fri, Mar 14, 2014 at 11:23 AM, Jeff Hatfield <inner...@gmail.com> wrote:
Is there any update on this?

--
You received this message because you are subscribed to the Google Groups "calabash-ios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-ios...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pete Hodgson
Señor Consultant!

@ph1
cell: 707-206-8897
skype: thepete


Danqa

unread,
Mar 14, 2014, 2:56:58 PM3/14/14
to calaba...@googlegroups.com
I updated to sim_launcher 0.4.9. But if I remove version 0.4.6  I get this error:

/Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find sim_launcher (= 0.4.6) amongst... all my installed gems. If I install 0.4.6 it works but then when I use the SDK_VERSION switch on the command line its not respected. It only starts up iOS 7.1 no matter what value I set.

Sincerely,

Sean Wolfe

unread,
Mar 14, 2014, 7:01:15 PM3/14/14
to calaba...@googlegroups.com
Danqa - you will need to update your .gemspec file to reflect the new dependency. Also I had to change values in my rvm specifications directory also.

However I did this and still getting a failure to launch even with sim_launcher 0.4.9   :(

I'm about to update from Xcode 5.0.2 to 5.1 and we'll see how it goes.

Glad to see you guys are on top of this, thanks :)

Krukow

unread,
Mar 16, 2014, 6:13:50 PM3/16/14
to calaba...@googlegroups.com
I've pushed a pre-release:  0.9.168.pre4. 

@Pete - thanks very much for the update and fix. It seems to work here -but I'm getting an error message: xcode-select: Error: unknown command option '-p'. (not yet on Mavericks). I'll see if I can do a pull request. 

Note that for future versions (and this prerelease) when running Xcode 5.1 instruments is always used in favor of sim_launcher. 

@others - the 0.9.168.pre4 supports the new instruments features as well as 64-bit builds (remember to build for the arch you want to test on first, otherwise instruments acts very wierd).

This release supports running all iOS version simulators with instruments. The way this is controlled is a bit verbose: for example

DEVICE_TARGET="iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1" DEBUG=1 bundle exec calabash-ios console

you can list possible simulator device targets:

instruments -s devices

DEVICE_TARGET="device" is still supported if a single device is connected, otherwise use the device udid.

Known issues: There are still bugs in Apples iOS Simulator when it comes to instruments / UIAutomation. Swipes on table views still don't work on simulator (but it still works on physical device). I've also observed the iOS simulator having problems reacting to system dialogs (like location) - a regression because this definitely worked previously (note from my testing this is a simulator-only issue - this does work on device).


Please help out testing this pre-release and report bugs here:


Other release notes:



Cheers
- Karl

Wojciech Kozlowski

unread,
Mar 16, 2014, 7:55:27 PM3/16/14
to calaba...@googlegroups.com
Hi Danqa,

I had the same problem with calabash failing to choose SDK specified in SDK_VERSION evn variable. Updating the "sim_launcher" gem and manually updating the dependency version form 0.4.6 to 0.4.9 in gemspec file for calabash worked and now SDK_VERSION is working again. Hope that helps.

Mobile Travel Technologies Ltd. | Hanover Court | Erne Street Lower, Dublin 2,  Ireland | T: +353 1 485 3452 | www.mttnow.com

Jani Jegoroff

unread,
Mar 17, 2014, 5:32:34 AM3/17/14
to calaba...@googlegroups.com
Thank you guys for the super fast reaction with this! :)
I will try to find time for testing new release during this week.

- Jani

Nicholas Black

unread,
Mar 17, 2014, 5:53:38 AM3/17/14
to calaba...@googlegroups.com
@Karl - thanks for this update.

Question: should we still need the accessibility inspector switched on?  

When it's off- I call start_test_server_in_background, I see the message:

****** Accessibility is not enabled on device/simulator, please enable it ***

When the accessibility inspector on, things seem to be working ok. 

-Nick


On Sunday, March 16, 2014 10:13:50 PM UTC, Krukow wrote:

Danqa

unread,
Mar 17, 2014, 10:11:50 AM3/17/14
to calaba...@googlegroups.com
Hi guys

I have update to 0.9.168.pre4 and updated to make sure that sim_launcher 0.4.9 is the default. Not I am getting an error when launching the simulator:

"The application that opened iOs simulator failed to send all the required information (sessionUUID, sdkRoot, deviceInfo)."

Any ideas what would cause that?

Sincerely,

Wojciech Kozlowski

unread,
Mar 17, 2014, 10:26:46 AM3/17/14
to calaba...@googlegroups.com
I think as per Krukow's release notes:
"Note that for future versions (and this prerelease) when running Xcode 5.1 instruments is always used in favor of sim_launcher."
168pre4 will try to use Instruments instead of sim_launcher so it might be an Instruments problem. I've downgraded to 167 for the time being.


--
You received this message because you are subscribed to a topic in the Google Groups "calabash-ios" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/calabash-ios/Rw5SqMo7tB0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to calabash-ios...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

______________________________

Wojciech Kozłowski
Software Developer
Mobile Travel Technologies Limited

Danqa

unread,
Mar 17, 2014, 10:45:17 AM3/17/14
to calaba...@googlegroups.com
I've downgraded. I'll wait for you guys to sort out the sim_launcher vs. instruments stuff and then upgrade.

I'll keep an eye on the thread.

Thanks for the help.

Sincerely,

Danqa

unread,
Mar 17, 2014, 11:02:20 AM3/17/14
to calaba...@googlegroups.com
I reverted but must have not reverted properly. The simulator is launching but not running the tests, Stack trace below:

2014-03-17 10:58:06 -0400 instruments -D "/var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/me/Library/Developer/Xcode/DerivedData/me-hbyyqjiweypdiqaosauklhfmefea/Build/Products/Test-iphonesimulator/me-cal.app" -e UIARESULTSPATH /var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff -e UIASCRIPT /var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff/_run_loop.js  &> /var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff/run_loop.out

Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=simulator

udid=
bundle_dir_or_bundle_id=/Users/me/Library/Developer/Xcode/DerivedData/me-hbyyqjiweypdiqaosauklhfmefea/Build/Products/Test-iphonesimulator/me-cal.app
script=/var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff/_run_loop.js
log_file=/var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-10ssiff/run_loop.out
timeout=30
args=[]
FFFFFFFFFFFFFFF
Reset app state for /Users/me/Library/Application Support/iPhone Simulator/7.1-64/Applications/949AE0E9-CEBC-435B-99E8-89B399C404BF/me-cal.app
Found instruments 27914. Killing...
Found instruments 27915. Killing...
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"com.snap-interactive.me", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>"7.1", :device_target=>"simulator", :app=>"/Users/me/Library/Developer/Xcode/DerivedData/me-hbyyqjiweypdiqaosauklhfmefea/Build/Products/Test-iphonesimulator/me-cal.app", :script=>"/Users/me/.rvm/gems/ruby-1.9.3-p327/gems/run_loop-0.1.5/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/danqa/Library/Developer/Xcode/DerivedData/me-hbyyqjiweypdiqaosauklhfmefea/Build/Products/Test-iphonesimulator/me-cal.app
script=/var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-1csvjlc/_run_loop.js
log_file=/var/folders/z9/lyytdtsj1zqcmkg61rbl151r0000gn/T/run_loop20140317-27792-1csvjlc/run_loop.out
timeout=30
args=[]
Preparation took 0.059314 seconds

Not sure whats wrong. Looking for some help. Thanks in advance.

Sincerely,
Danqa

h...@renatorodrigues.me

unread,
Mar 17, 2014, 11:33:57 AM3/17/14
to calaba...@googlegroups.com
I had recently a situation where the same error was being thrown. It is a bug.

Joshua Moody
replied with:

# this is known bug with Xcode 5.1 + calabash 0.9.167 + simulator
# we are working on a fix

AXError: Could not auto-register for pid status change


It may be the same kind of problem happening with you.

Joshua Moody

unread,
Mar 17, 2014, 5:16:55 PM3/17/14
to calaba...@googlegroups.com
@Danqa - did you downgrade your Xcode version to 5.0.2?

Danqa

unread,
Mar 17, 2014, 6:16:28 PM3/17/14
to calaba...@googlegroups.com
No I am still on 5.1. Will downgrade in the morning.

Thanks Joshua.

Sincerely,
Danqa

Jani Jegoroff

unread,
Mar 18, 2014, 7:37:07 AM3/18/14
to calaba...@googlegroups.com
I did run my test suite on simulator (iPad + few tests on iPhone). Generally speaking everything works awesome.

So far I have noticed only couple of problems related to Accessibility setting and "Accessibility Inspector" window:

1. Need to enable Accessibility from Settings app (mentioned already here)
I did a quick workaround for enabling Accessibility from env.rb:

SIMULATOR = ENV['DEVICE_TARGET'].downcase.include?('simulator')

if SIMULATOR
    # Enable accessibility and minimise 'Accessibility Inspector' window.

    accessibilityPlistPath = '~/Library/Application\ Support/iPhone\ Simulator/7.1/Library/Preferences/com.apple.Accessibility.plist'

    `killall 'iPhone Simulator'`
    `rm -rf ~/Library/Application\ Support/iPhone\ Simulator/`
    `defaults write #{accessibilityPlistPath} "AXInspectorEnabled" '1'`
    `defaults write #{accessibilityPlistPath} "AXInspector.enabled" '0'`  # minimise 'Accessibility Inspector' window
    `defaults write #{accessibilityPlistPath} "AccessibilityEnabled" '1'`
end

Workaround above is not perfect since it does not hide 'Accessibility Inspector' window complete, it just minimise it. Let me know if you have better solution.

2. "Accessibility Inspector" window
This window seems to prevent interaction with UI elements if it's floating on top of them. This will happen if you reset simulator content and settings before launching tests.
E.g. in my case window floats on top of the keyboard in iPad and prevents text typing. 'Accessibility Inspector' window is shown only during first scenario. Do you know how to hide it completely?



On Sunday, March 16, 2014 10:13:50 PM UTC, Krukow wrote:

Jani Jegoroff

unread,
Mar 18, 2014, 12:29:59 PM3/18/14
to calaba...@googlegroups.com
I managed to get rid off 'Accessibility Inspector' window completely. Not the most elegant way though...

SIMULATOR = ENV['DEVICE_TARGET'].downcase.include?('simulator')

if SIMULATOR
    # Enable accessibility and dismiss 'Accessibility Inspector' window.

    accessibilityPlistPath = '~/Library/Application\ Support/iPhone\ Simulator/7.1/Library/Preferences/com.apple.Accessibility.plist'

    `killall 'iPhone Simulator'`
    `rm -rf ~/Library/Application\ Support/iPhone\ Simulator/`
    `defaults write #{accessibilityPlistPath} "AXInspectorEnabled" '1'`
    `defaults write #{accessibilityPlistPath} "AXInspector.enabled" '0'`
    `defaults write #{accessibilityPlistPath} "AccessibilityEnabled" '1'`
    `osascript -e 'tell application "iPhone Simulator" to activate'`
    sleep 5
    `defaults write #{accessibilityPlistPath} "AXInspectorEnabled" '0'`
    `killall 'iPhone Simulator'`
end

Nicholas Black

unread,
Mar 18, 2014, 2:58:35 PM3/18/14
to calaba...@googlegroups.com
Thanks for this Jani.... 

My impression was that the main purpose of this version (0.9.168) was to eliminate the need to turn on the accessibility inspector at all. 

It seems there are other improvements but the initial problem is not fixed (without either enabling the inspector, or using your workaround).

Michael Lang

unread,
Mar 24, 2014, 2:41:09 PM3/24/14
to calaba...@googlegroups.com
Has anyone reached a solution that consistently works for this? I was able to enable the Accessibility Inspector via Jani's first script, but the second hasn't been working for me and today I'm seeing button presses automated by calabash that worked prior to the upgrade to XCode 5.1 fail to take effect intermittently with this workaround in place.

I'd really like to use calabash as a common platform for writing both my ios and android tests, but I just can't seem to get calabash iOS to work consistently with XCode 5.1  

Is anyone else seeing button presses fail to take effect with this workaround in place?

Regards,
Michael Lang

Sean Wolfe

unread,
Mar 24, 2014, 11:46:50 PM3/24/14
to calaba...@googlegroups.com
I'd say sit tight, as Xcode 51/ ios 71 issues are being actively worked on right now.

You could also backdate to Xcode 502 / ios70 while we wait for the updated calabash code.

Karl Krukow

unread,
Mar 24, 2014, 11:48:03 PM3/24/14
to calaba...@googlegroups.com
We have it running well locally - commits will be pushed soon and we will cut a release.


Michael Lang

unread,
Mar 25, 2014, 12:36:48 PM3/25/14
to calaba...@googlegroups.com
Thanks so much guys!  You all are moving fast.  Good to hear the fixes are on the way

Joshua Moody

unread,
Mar 25, 2014, 2:09:45 PM3/25/14
to calaba...@googlegroups.com
as karl mentioned, we are working on the fixes.

thanks to everyone for their patience.

jjm

Joshua Moody

unread,
Mar 25, 2014, 10:45:13 PM3/25/14
to calaba...@googlegroups.com

Nicholas Black

unread,
Mar 26, 2014, 7:37:50 AM3/26/14
to calaba...@googlegroups.com
Thanks Joshua,

Should I just be able to install this using: gem install calabash-cucumber --pre ?

This seems to install 0.9.168.pre5 - am I missing something?

Joshua Moody

unread,
Mar 26, 2014, 9:23:04 AM3/26/14
to calaba...@googlegroups.com

Should I just be able to install this using: gem install calabash-cucumber --pre ?

Not yet.  I will push to ruby gems soon.

 

Joshua Moody

unread,
Mar 26, 2014, 10:01:38 AM3/26/14
to calaba...@googlegroups.com
0.9.168.pre6 is now available on ruby gems

Nicholas Black

unread,
Mar 26, 2014, 12:47:37 PM3/26/14
to calaba...@googlegroups.com
Thanks Joshua- this is looking sweet so far. Fixes the issues for me.

Nicholas Black

unread,
Mar 26, 2014, 3:21:43 PM3/26/14
to calaba...@googlegroups.com
Sorry- I spoke too soon I reset my simulator, and I'm still getting the message:

****** Accessibility is not enabled on device/simulator, please enable it *** 

When I don't have the Accessibility Inspector enabled. Can you confirm if I should still need this enabled?

Jani Jegoroff

unread,
Mar 26, 2014, 4:10:19 PM3/26/14
to calaba...@googlegroups.com
I think you need to enable it manually. See https://github.com/calabash/calabash-ios/wiki/A0-Xcode-51-Support

Joshua Moody

unread,
Mar 26, 2014, 4:15:27 PM3/26/14
to calaba...@googlegroups.com
Jani is correct.

See the document he linked to for a check list (of sorts) and note that you might turn on Accessibility in one simulator and it will not be on in another.


Anu

unread,
Mar 26, 2014, 5:04:43 PM3/26/14
to calaba...@googlegroups.com
I Installed the latest gem version and when i execute, i am getting xcode-select: Error: unknown command option '-p'. 
and the simulator is just flashing up and going off..

How to fix this?
Message has been deleted

Nicholas Black

unread,
Mar 26, 2014, 6:37:19 PM3/26/14
to calaba...@googlegroups.com
Ah ok- thanks Joshua / Jani...

So that leaves me with a couple of questions

1. When manually resetting the simulator  (reset content and settings)- the Accessibility Inspector is turned off, is Jani's script a recommended/reliable way of automating turning on the Inspector? Do we need to take this into account when using RESET_BETWEEN_SCENARIOS?

2. There's the other problem of the Inspector getting in the way of UI elements- again, is Jani's recommendation the recommended way to hide the inspector window so it doesn't get in the way?

Kris Ring

unread,
Mar 26, 2014, 11:37:53 PM3/26/14
to calaba...@googlegroups.com
I'm hoping to get some help on this issue - I am using a physical device, and during my test run I get a connection refused error and the tests quit, this happens when I run in console or from my ant script, here is the command that is used to boot my scripts:

APP_BUNDLE_PATH=/Users/kris/Library/Developer/Xcode/DerivedData/SeerClientApp-eqqgxwjxisbkrneyqktxqlccdvzq/Build/Products/Debug-iphoneos/SeerClientApp-cal.app DEVICE=iphone DEVICE_TARGET=device SDK_VERSION=7.0 DEVICE_ENDPOINT=http://192.168.1.83:37265 calabash-ios console

I am on 0.9.168.pre6 as of earlier today, still getting the same issue as before the update and I am running xcode 5.1, on Mountain Lion. Should I update to Mavericks possibly?

Kris Ring

unread,
Mar 27, 2014, 12:03:37 AM3/27/14
to calaba...@googlegroups.com
I actually double checked and have XCode 5.0 - so I will update and see what that gets me and post if there is further issue.

Kris Ring

unread,
Mar 27, 2014, 1:12:08 AM3/27/14
to calaba...@googlegroups.com
Okay I just ran a triple check - I have iOS 7.0 (and 7.1), XCode 5.1 and OSX 10.8.4 - I am forced to run on a physical device and I am getting the connection refused error after a few tests run. I have updated calabash to 0.9.168.pre6 as well.

This is the command I am using, please let me know what else I can provide so that I can get back on my way, thanks!

APP_BUNDLE_PATH=/Users/kris/Library/Developer/Xcode/DerivedData/SeerClientApp-eqqgxwjxisbkrneyqktxqlccdvzq/Build/Products/Debug-iphoneos/SeerClientApp-cal.app DEVICE=iphone DEVICE_TARGET=device SDK_VERSION=7.0 DEVICE_ENDPOINT=http://192.168.1.83:37265 calabash-ios console

On Wednesday, March 26, 2014 8:01:38 AM UTC-6, Joshua Moody wrote:

Jani Jegoroff

unread,
Mar 27, 2014, 5:09:15 AM3/27/14
to calaba...@googlegroups.com
1. Script is a workaround that seems to work for me (at least most of the times). Feel free to edit it for your needs and share if you find better solution.

2. I would like to hear other people experiences on this too. For me inspector window cause problems since it is floating top of the keyboard and therefore preventing reliable typing.

Joshua Moody

unread,
Mar 27, 2014, 9:51:00 AM3/27/14
to calaba...@googlegroups.com
1. When manually resetting the simulator  (reset content and settings)- the Accessibility Inspector is turned off, is Jani's script a recommended/reliable way of automating turning on the Inspector? Do we need to take this into account when using RESET_BETWEEN_SCENARIOS?
2. There's the other problem of the Inspector getting in the way of UI elements- again, is Jani's recommendation the recommended way to hide the inspector window so it doesn't get in the way?

We don't have a recommend way yet and are looking at Jani's script.  

Thanks @Jani
 

Jani Jegoroff

unread,
Mar 27, 2014, 10:11:13 AM3/27/14
to calaba...@googlegroups.com
Just tried latest Calabash pre-release. I had to modify workaround a bit and latest solution looks like this:


@Nicholas: Have a look, for me it seems to work pretty well. I noticed some random cases when simulator/instruments stops working properly...

Nicholas Black

unread,
Mar 27, 2014, 1:52:09 PM3/27/14
to calaba...@googlegroups.com
Thanks Jani- I'll give them a go. Much appreciated.

Anu

unread,
Mar 27, 2014, 5:02:51 PM3/27/14
to calaba...@googlegroups.com
Upgraded my machine from 10.8 to Maveriks 10.9.2. Now i am not seeing that Xcode script error: -p thing.
I am executing the scripts on simulator and observing that its very slow to start. Could this be improved?

Thanks Jani for the script to enable the accessibility.


Joshua Moody

unread,
Mar 27, 2014, 10:02:37 PM3/27/14
to calaba...@googlegroups.com
Anu, please post the command line arguments you are using to launch cucumber.

Also provide the calabash-ios gem and server versions - they should both be 0.9.168.

Anu

unread,
Apr 9, 2014, 3:48:19 PM4/9/14
to calaba...@googlegroups.com

calabash-ios version

0.9.168.pre6

server_version['version']

"0.9.168.pre6"

Calabash::Cucumber::FRAMEWORK_VERSION

"0.9.168"


Command line i am doing it very simple

DEVICE_TARGET='iPad - Simulator - iOS 7.0' cucumber features/test_file.feature


It launches the simulator and goes off

Again launches and loads our app.

on the console i see the Background: text that i have given in the feature file.

Stays there for some time( around 15 sec) 

Then the scenario: text shows up and then the execution starts on the simulator.


Myquestion is why it takes 15 sec to start. So every start of scenario its doing this.



Joshua Moody

unread,
Apr 10, 2014, 8:41:47 AM4/10/14
to calaba...@googlegroups.com
Please upgrade to the 0.9.168 release.

As a side note:

Calabash::Cucumber::FRAMEWORK_VERSION

will be deprecated in the next version of calabash - it is a meaningless variable at the moment.


Nicholas Black

unread,
Apr 30, 2014, 12:55:41 PM4/30/14
to calaba...@googlegroups.com
Jani- I gave this approach a go and it is working well for me too.

I'm using a shell script to do this configuration up front- rather than before each scenario. I didn't want the delay between scenarios (and I'm not resetting the sim between scenarios)

It also seems to work without the following line:
`defaults write #{accessibilityPlistPath} "AXInspector.enabled" '0'`


On Thursday, March 27, 2014 2:11:13 PM UTC, Jani Jegoroff wrote:

Joshua Moody

unread,
Apr 30, 2014, 12:57:40 PM4/30/14
to calaba...@googlegroups.com
Jani's approach with some modifications will be available in 0.9.169.


Nicholas Black

unread,
Apr 30, 2014, 1:01:01 PM4/30/14
to calaba...@googlegroups.com
Sweet- thanks Joshua!


On Wed, Apr 30, 2014 at 5:57 PM, Joshua Moody <joshua...@gmail.com> wrote:
Jani's approach with some modifications will be available in 0.9.169.


--
You received this message because you are subscribed to a topic in the Google Groups "calabash-ios" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/calabash-ios/Rw5SqMo7tB0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to calabash-ios...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jani Jegoroff

unread,
Apr 30, 2014, 2:35:33 PM4/30/14
to calaba...@googlegroups.com
Awesome work guys!

@Joshua: Do you have rough estimate when 0.9.169 will be released?

Joshua Moody

unread,
Apr 30, 2014, 3:32:05 PM4/30/14
to calaba...@googlegroups.com
No estimate.  Sorry.  

Jani Jegoroff

unread,
May 28, 2014, 11:04:02 AM5/28/14
to calaba...@googlegroups.com
I have been testing 0.9.169 release. When running my complete test set on 7.1 simulator I still see following error very often:
****** Accessibility is not enabled on device/simulator, please enable it ***

It appears randomly. Sometimes after first scenario, sometimes after 10 scenarios.

Environment:

xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

xcodebuild -version
Xcode 5.1.1
Build version 5B1008

calabash-ios version
0.9.169

calabash.framework/Resources/version
0.9.169

Cucumber launch profile:

dev_ipad: DEVICE_TARGET='iPad - Simulator - iOS 7.1' RESET_BETWEEN_SCENARIOS=1 Calabash/features --tags @ipad --tags ~@pending

Complete error log:

|Reset app state for /Users/janijegoroff/Library/Application Support/iPhone Simulator/7.1/Applications/CC932DCB-5D89-4D60-A20B-913EA22352D1/MyApp-cal.app
find: /Users/janijegoroff/Library/Application Support/iPhone Simulator/7.1-64/Applications: No such file or directory
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/run_loop.out
timeout=30
args=[]
Preparation took 0.058803 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:28:17 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/run_loop.out
Failed to launch
reason=execution expired: execution expired
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-15cb52d/run_loop.out
timeout=30
args=[]
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/run_loop.out
timeout=30
args=[]
Preparation took 0.075216 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:28:47 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2 -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/run_loop.out
Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1izefg2/run_loop.out
timeout=30
args=[]
Found instruments 23613. Killing...
Found instruments 23614. Killing...
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/run_loop.out
timeout=30
args=[]
Preparation took 0.09112 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:28:54 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/run_loop.out


****** Accessibility is not enabled on device/simulator, please enable it ***

Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-yinqjs/run_loop.out
timeout=30
args=[]
Found instruments 23669. Killing...
Found instruments 23670. Killing...
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/run_loop.out
timeout=30
args=[]
Preparation took 0.085341 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:29:02 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5 -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/run_loop.out


****** Accessibility is not enabled on device/simulator, please enable it ***

Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-1fspwr5/run_loop.out
timeout=30
args=[]
Found instruments 23724. Killing...
Found instruments 23725. Killing...
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/run_loop.out
timeout=30
args=[]
Preparation took 0.097963 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:29:09 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/run_loop.out


****** Accessibility is not enabled on device/simulator, please enable it ***

Failed to launch
reason=AXError: Could not auto-register for pid status change: AXError: Could not auto-register for pid status change
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/run_loop.out
timeout=30
args=[]
Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Failing... Errno::ECONNREFUSED
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Retrying.. Errno::ECONNREFUSED: (Connection refused - connect(2) (http://localhost:37265))
Failing... Errno::ECONNREFUSED
 live        | Match      |      Connection refused - connect(2) (http://localhost:37265) (Errno::ECONNREFUSED)
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `initialize'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `new'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `create_socket'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:752:in `block in connect'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/timeout.rb:97:in `timeout'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:751:in `connect'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:609:in `query'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:164:in `query'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:1083:in `do_get_block'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:887:in `block in do_request'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:981:in `protect_keep_alive_disconnected'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:886:in `do_request'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:774:in `request'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/httpclient-2.3.4.1/lib/httpclient.rb:677:in `get'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/http_helpers.rb:54:in `block in make_http_request'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/http_helpers.rb:44:in `times'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/http_helpers.rb:44:in `make_http_request'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/http_helpers.rb:24:in `http'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/connection_helpers.rb:8:in `http'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/core.rb:69:in `server_version'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/environment_helpers.rb:139:in `_default_device_or_create'
      /Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.169/lib/calabash-cucumber/environment_helpers.rb:72:in `simulator?'
      /Users/janijegoroff/MyApp-iOS/Calabash/features/support/02_pre_stop_hooks.rb:4:in `Before'

      Connection refused - connect(2) (http://localhost:37265) (Errno::ECONNREFUSED)
      ./Calabash/features/support/page_objects/base_view.rb:14:in `method_missing'
      ./Calabash/features/support/page_objects/developer_launch_menu_view.rb:37:in `enable_dropbox_configuration'
      ./Calabash/features/support/page_objects/developer_launch_menu_view.rb:17:in `launch'
      ./Calabash/features/support/step_helpers/schedule_screen_steps_helper.rb:3:in `given_screen_is_opened'
      Calabash/features/schedule_screen.feature:9:in `Given Schedule screen is opened'
      |Reset app state for /Users/janijegoroff/Library/Application Support/iPhone Simulator/7.1/Applications/CC932DCB-5D89-4D60-A20B-913EA22352D1/MyApp-cal.app
find: /Users/janijegoroff/Library/Application Support/iPhone Simulator/7.1-64/Applications: No such file or directory
{:launch_method=>:instruments, :reset=>true, :bundle_id=>"MyBundle.MyApp-cal", :device=>"iphone", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"iPad - Simulator - iOS 7.1", :udid=>nil, :app=>"/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app", :script=>"/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=iPad - Simulator - iOS 7.1
udid=iPad - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app
script=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy/_run_loop.js
log_file=/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy/run_loop.out
timeout=30
args=[]
Preparation took 0.055052 seconds

### Starting on iPad - Simulator - iOS 7.1 App: /Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app ###
2014-05-28 14:29:22 +0100 instruments -w "iPad - Simulator - iOS 7.1" -D "/var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/janijegoroff/Library/Developer/Xcode/DerivedData/MyApp-civuqgdjemtasdaqyhpsrgakmnyv/Build/Products/Debug-iphonesimulator/MyApp-cal.app" -e UIARESULTSPATH /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy -e UIASCRIPT /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy/_run_loop.js  &> /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-5q1bsy/run_loop.out
Launching took 8.844055 seconds
^C
Exiting... Interrupt again to exit immediately.
^CJanis-MacBook-Air:MyApp-iOS janijegoroff$
Janis-MacBook-Air:MyApp-iOS janijegoroff$
Janis-MacBook-Air:MyApp-iOS janijegoroff$ cat /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/run_loop.out
2014-05-28 14:29:17.682 ScriptAgent[23820:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-05-28 14:29:17.683 ScriptAgent[23820:3107] CLTilesManagerClient: init
2014-05-28 14:29:17.683 ScriptAgent[23820:3107] CLTilesManagerClient: reconnecting, 0x9f41a90
2014-05-28 14:29:17.718 ScriptAgent[23820:3107] AXError: Could not auto-register for pid status change
2014-05-28 14:29:17.722 ScriptAgent[23820:3107] Failed to enable accessiblity, kAXErrorServerNotFound
2014-05-28 13:29:17 +0000 Fail: The target application appears to have died
2014-05-28 14:29:18.194 instruments[23780:5f0b] Automation Instrument ran into an exception while trying to run the script.  UIAScriptAgentSignaledException
2014-05-28 13:29:18 +0000 Fail: An error occurred while trying to run the script.
Instruments Trace Complete (Duration : 8.126704s; Output : /var/folders/jj/9l8jmq290pd0bsxl94f8fwlw0000gn/T/run_loop20140528-18914-8zxdvp/trace.trace)
Janis-MacBook-Air:MyApp-iOS janijegoroff$

Is anyone else experiencing the same behaviour?

On Wednesday, April 30, 2014 8:32:05 PM UTC+1, Joshua Moody wrote:
No estimate.  Sorry.  

Joshua Moody

unread,
May 29, 2014, 5:58:24 PM5/29/14
to calaba...@googlegroups.com
+1 Thanks for posting all the details!
+1 For using the new calabash.framework/Resources/version

We have tested this pretty thoroughly.

Do you have a local copy of the calabash-cucumber repo?

If so can you try this:

$ cd path/to/local/copy/calabash-ios/calabash-cucumber
$ bundle install
$ bundle exec rake spec

WARNING: This will run the rspec tests which will:

1. tie up your machine for about 5 minutes
2. reset your simulator content and settings (multiple times)

You have been warned. :)

This looks like it might be a test app?  Can you share it with me?

Ping me on the IRC channel or by email if you want to share this privately.

Is there any chance that you are still calling out to your solution for enabling accessibility?

Jani Jegoroff

unread,
Jun 1, 2014, 6:13:54 PM6/1/14
to calaba...@googlegroups.com
No, I'm not using my solution anymore for enabling accessibility. Project is a real app and unfortunately I can't share it. I will do more testing in coming week but it seems that 7.0 is working fine and problems are only related to 7.1.

I just ran rspec tests:

janis-air:calabash-cucumber janijegoroff$ bundle exec rake spec
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/bin/ruby -S rspec ./spec/bin/calabash_ios_sim_spec.rb ./spec/launcher_spec.rb ./spec/logging_spec.rb ./spec/plist_buddy_spec.rb ./spec/simulator_accessibility_spec.rb ./spec/version_spec.rb ./spec/xctools_spec.rb

WARN: deprecated '0.9.169' - 'use Calabash::Cucumber::SimulatorAccessibility.quit_simulator'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/bin/calabash-ios-sim.rb:8:in `quit_sim'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/spec/bin/calabash_ios_sim_spec.rb:12:in `block (3 levels) in <top (required)>'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/spec/spec_helper.rb:26:in `capture_stderr'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/spec/bin/calabash_ios_sim_spec.rb:11:in `block (2 levels) in <top (required)>'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval'
.............*..
INFO: this is an info message
.
WARN: this is a warning message
.
WARN: deprecated '0.9.169' - 'this is a deprecation message'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/spec/logging_spec.rb:29:in `block (2 levels) in <top (required)>'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `block in run'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:111:in `run'
.................
WARN: Will throw a "ScriptAgent quit unexpectedly" UI dialog!

This dialog is generated because the app failed to a launch
correctly on the simulator.  I checked run_loop and this is not
caused by anything there.

AFAICT there is nothing to be done about this.


****** Accessibility is not enabled on device/simulator, please enable it ***

Unable to start. Make sure you've set APP_BUNDLE_PATH to a build supported by this simulator version
..
INFO: starting simulator 'iPhone - Simulator - iOS 6.1'

WARN: skipping simulator 'iPhone - Simulator - iOS 7.0' - instruments passed us an invalid configuration!

WARN: skipping simulator 'iPhone - Simulator - iOS 7.1' - instruments passed us an invalid configuration!

INFO: starting simulator 'iPhone Retina (3.5-inch) - Simulator - iOS 6.1'

INFO: starting simulator 'iPhone Retina (3.5-inch) - Simulator - iOS 7.0'

INFO: starting simulator 'iPhone Retina (3.5-inch) - Simulator - iOS 7.1'

INFO: starting simulator 'iPhone Retina (4-inch) - Simulator - iOS 6.1'

INFO: starting simulator 'iPhone Retina (4-inch) - Simulator - iOS 7.0'

INFO: starting simulator 'iPhone Retina (4-inch) - Simulator - iOS 7.1'

WARN: skipping simulator 'iPhone Retina (4-inch 64-bit) - Simulator - iOS 6.1' - instruments passed us an invalid configuration!

INFO: starting simulator 'iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.0'

INFO: starting simulator 'iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1'

INFO: starting simulator 'iPad - Simulator - iOS 6.1'

INFO: starting simulator 'iPad - Simulator - iOS 7.0'

INFO: starting simulator 'iPad - Simulator - iOS 7.1'

INFO: starting simulator 'iPad Retina - Simulator - iOS 6.1'

INFO: starting simulator 'iPad Retina - Simulator - iOS 7.0'

INFO: starting simulator 'iPad Retina - Simulator - iOS 7.1'

WARN: skipping simulator 'iPad Retina (64-bit) - Simulator - iOS 6.1' - instruments passed us an invalid configuration!

INFO: starting simulator 'iPad Retina (64-bit) - Simulator - iOS 7.0'

INFO: starting simulator 'iPad Retina (64-bit) - Simulator - iOS 7.1'
.
WARN: deprecated '0.9.169' - 'FRAMEWORK_VERSION has been deprecated - there is no replacement'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/lib/calabash-cucumber/version.rb:9:in `const_missing'
/Users/janijegoroff/github/calabash-ios/calabash-cucumber/spec/version_spec.rb:6:in `block (2 levels) in <top (required)>'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `instance_eval'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:114:in `block in run'
/Users/janijegoroff/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
..........

Pending:
  Calabash Launcher default launch args should respect DEVICE_TARGET running with instruments running against devices when DEVICE_TARGET = device detecting connected devices when DETECT_CONNECTED_DEVICE == '1' should return a udid if DEVICE_TARGET=device if a device is connected and simulator otherwise
    # this behavior is needs verification
    # ./spec/launcher_spec.rb:116

Finished in 6 minutes 16 seconds
48 examples, 0 failures, 1 pending
janis-air:calabash-cucumber janijegoroff$

Joshua Moody

unread,
Jun 7, 2014, 10:54:44 AM6/7/14
to calaba...@googlegroups.com
Well, the rspec passed. :)

Is this still happening for you?

The only thing I can think of is that you haven't built (from Xcode) for the specific simulator you are targeting.

jjm

Maksym Grebenets

unread,
Jul 22, 2014, 1:09:50 AM7/22/14
to calaba...@googlegroups.com
I am experiencing this issue right now.
0.9.167 - works
0.9.169 - doesn't (simulator launches, black screen, can't launch the app)

$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
$ xcodebuild -version

Xcode 5.1.1
Build version 5B1008

Here's the profile definition in cucumber.yml
dev_ios: APP=build/HeraldSun-cal.app PLATFORM=ios DEBUG=1 DEVICE_TARGET=simulator DEVICE=ipad --format pretty --format usage

and then I run it like so
cucumber -p dev_ios features/performance.feature -l19

With 0.9.167 I get the following in the log
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.tigerspike.ndm.heraldsun", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :device_target=>"simulator", :app=>"/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app", :script=>"/Users/grebenetsm/.rvm/gems/ruby-2.0.0-p451/gems/run_loop-0.1.5/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=
bundle_dir_or_bundle_id=/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app
script=/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la/_run_loop.js
log_file=/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la/run_loop.out
timeout=30
args=[]
Preparation took 0.055019 seconds

### Starting on simulator App: /Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app ###
2014-07-22 14:58:35 +1000 instruments -D "/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la/trace" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app" -e UIARESULTSPATH /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la -e UIASCRIPT /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la/_run_loop.js  &> /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52419-1v4r0la/run_loop.out
Launching took 8.739486 seconds

And this is what happens with 0.9.169
{:launch_method=>:instruments, :reset=>false, :bundle_id=>"com.tigerspike.ndm.heraldsun", :device=>"ipad", :no_stop=>false, :no_launch=>false, :sdk_version=>nil, :launch_retries=>5, :device_target=>"simulator", :udid=>nil, :app=>"/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app", :script=>"/Users/grebenetsm/.rvm/gems/ruby-2.0.0-p451/gems/run_loop-0.2.1/scripts/run_loop_fast_uia.js"}
device_target=simulator
udid=iPhone Retina (4-inch) - Simulator - iOS 7.1
bundle_dir_or_bundle_id=/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app
script=/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749/_run_loop.js
log_file=/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749/run_loop.out
timeout=30
args=[]
Preparation took 0.069387 seconds

### Starting on simulator App: /Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app ###
2014-07-22 14:51:44 +1000 instruments -w "iPhone Retina (4-inch) - Simulator - iOS 7.1" -D "/var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749/trace" -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "/Users/grebenetsm/Projects/news-ltd/quattro-features/build/HeraldSun-cal.app" -e UIARESULTSPATH /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749 -e UIASCRIPT /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749/_run_loop.js  &> /var/folders/9x/v01v5z311r9cp0mrqkbg6cy57qc07c/T/run_loop20140722-52058-dpn749/run_loop.out

I have highlighted the difference that looks suspicious to me
-w "iPhone Retina (4-inch) - Simulator - iOS 7.1"

I have no idea why would it use this flag. I have specified ipad as a device properly, I know for sure I have built the app bundle with proper destination flags
xcodebuild clean build -sdk iphonesimulator -scheme HeraldSun-cal -destination OS=7.1,name=iPad CONFIGURATION_BUILD_DIR=build

Despite the -w flag with iPhone option, it still launches iPad simulator.
There are no iOS devices connected to computer.

I have to stick with 0.9.167 for now on to run tests on 7.0+

Jani Jegoroff

unread,
Jul 22, 2014, 4:16:47 AM7/22/14
to calaba...@googlegroups.com
Usage of DEVICE_TARGET and DEVICE env variables have been changed when using Xcode 5.1.1 and Calabash 0.9.169

Jani Jegoroff

unread,
Jul 22, 2014, 4:19:09 AM7/22/14
to calaba...@googlegroups.com
I have been updating my environment to latest versions and no problems anymore.

Joshua Moody

unread,
Jul 22, 2014, 8:07:26 AM7/22/14
to calaba...@googlegroups.com
Jani is correct.

Update your profile to be:

dev_ios: APP=build/HeraldSun-cal.app PLATFORM=ios DEBUG=1 DEVICE_TARGET='iPad Retina - Simulator - iOS 7.1' --format pretty --format usage

The list of available simulators can be found by running:

$ instruments -s devices

For a comprehensive, and therefore very confusing, cucumber.yml, see:

Maksym Grebenets

unread,
Jul 27, 2014, 9:45:42 PM7/27/14
to calaba...@googlegroups.com
Thanks guys, it works after all.
I had to revisit release nodes for 168 and 169 again.

Reply all
Reply to author
Forward
0 new messages