pxctest icon indicating copy to clipboard operation
pxctest copied to clipboard

Cannot launch simulator

Open ghost opened this issue 8 years ago • 2 comments

I have a config like below:

rm -rf /tmp/IS24_PR/test-simulators
mkdir /tmp/IS24_PR/test-simulators
pxctest boot-simulators \
--deviceset /tmp/IS24_PR/test-simulators \
--destination 'name=iPhone 7,os=iOS 10.3' \
--destination 'name=iPhone 6,os=iOS 9.3'
pxctest run-tests \
--testrun /tmp/IS24_PR/derivedData/Build/Intermediates/CodeCoverage/Products/ImmoScout24-Alpha_iphonesimulator10.3-x86_64.xctestrun \
--deviceset /tmp/IS24_PR/test-simulators \
--destination 'name=iPhone 7,os=iOS 10.3' \
--destination 'name=iPhone 6,os=iOS 9.3' \
--only 'ImmoScout24-AlphaTests'

It can run quite well for some time. But then I got this error.

NSUnderlyingError=0x7f91bc001b40 {Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to boot device because it cannot be located on disk." UserInfo={NSLocalizedRecoverySuggestion=Use the device manager in Xcode or the simctl command line tool to either delete the device properly or erase contents and settings., NSLocalizedDescription=Unable to boot device because it cannot be located on disk., NSLocalizedFailureReason=The device's data is no longer present at /path/to/device

Do you have any idea how to fix it?

ghost avatar Apr 26 '17 07:04 ghost

Never saw an error like this before - not sure how I can help, but it must be related to your system somehow.

plu avatar Apr 26 '17 07:04 plu

I have seen such errors lately, with a more thorough error message from fbsimcontrol though. Try to kill all running sims with killall -9 com.apple.CoreSimulator.CoreSimulatorService

Alternatively, I've noticed that when experimenting, it's easy to leave some simulators hanging around, which ends up causing startup failures after a while. I'm now careful to shutdown the sims before deleting their root folder. Rebooting tends to solve those "too many sims running issues" too.

olarivain avatar Apr 29 '17 19:04 olarivain