[ 
https://issues.apache.org/jira/browse/CB-10898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15237564#comment-15237564
 ] 

Omar Mefire commented on CB-10898:
----------------------------------

This time around, the reason why it showed up on the CI was because the 
simulator hung and wasn't responding.
I had to log into the machine and manually kill the simulator, which fixed the 
issue.

cordova-medic was supposed to kill the simulator before and after every run. 
that didn't happen because with Xcode 7, the way you kill the simulator has 
changed from 'killall -9 "iOS Simulator" ' to " killall -9 "Simulator" '


Running 'killall -9 "iOS Simulator" ' was erroring out with:
"[MEDIC LOG Tue, 12 Apr 2016 12:08:23 GMT] running the following command:
[MEDIC LOG Tue, 12 Apr 2016 12:08:23 GMT]     killall -9 "iOS Simulator"
No matching processes belonging to you were found
WARNING: kill command returned 1
program finished with exit code 0
elapsedTime=0.330458"

https://ci.apache.org/builders/cordova-ios/builds/2278/steps/killing-running-tasks/logs/stdio

> 'Invalid Device State' when starting iOS simulator
> --------------------------------------------------
>
>                 Key: CB-10898
>                 URL: https://issues.apache.org/jira/browse/CB-10898
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Omar Mefire
>            Assignee: Omar Mefire
>            Priority: Critical
>              Labels: cordova-ios, found-by-ci
>
> When trying to run the mobilespec app on the iOS simulator, an error: 
> 'Invalid Device State' is encountered.
> Log: 
> https://ci.apache.org/builders/cordova-ios/builds/2076/steps/running-tests/logs/stdio
> ======
> Results at 
> '/Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/build/device/mobilespec.ipa'
>  
> [....] Waiting up to 1 seconds for iOS device to be connected
> No target specified for emulator. Deploying to iPhone-6s-Plus, 9.1 simulator
> An error was encountered processing the command 
> (domain=com.apple.CoreSimulator.SimError, code=159):
> Invalid device state
> logPath: 
> /Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/cordova/console.log
> [MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] Finished waiting for run command
> [MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] started waiting for test results
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] Finished polling for mobilespec 
> results.
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Results Found:   false
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Total attempts:  144
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Failed attempts: 0
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] FATAL: Could not find test results. 
> Check the output of medic-log to see if the app crashed before it could 
> upload them to couchdb.
> program finished with exit code 1
> elapsedTime=1491.694117



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to