Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Cannot launch simulator #38

Open
huyhua opened this issue Apr 26, 2017 · 2 comments
Open

Cannot launch simulator #38

huyhua opened this issue Apr 26, 2017 · 2 comments

Comments

@huyhua
Copy link

huyhua commented Apr 26, 2017

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?

@plu
Copy link
Owner

plu commented Apr 26, 2017

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

@olarivain
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants