Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild test : Could not launch simulator: -10827

I am running my build agent as a launch agent. I get this error when I try to run "xcodebuild test ..." :

2016-07-14 16:31:00.535 xcodebuild[11579:21390] [MT] iPhoneSimulator: Could not launch simulator: -10827 xcodebuild: error: Failed to build project XcodeTestsTest1 with scheme XcodeTestsTest1. Reason: The operation couldn’t be completed. (OSStatus error -10827.)

Do you have any idea about how can this issue be solved?

Thanks!

like image 745
thorax Avatar asked Jul 14 '16 14:07

thorax


1 Answers

For me this helped - close XCode & Simulator (if running) - open Terminal and type:

ps -ax | grep simdeviceio | grep -v grep

this had some output on my Mac:

50755   ??  Ss     0:00.67 /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/SimStreamProcessorServices.simdeviceio/Contents/XPCServices/SimStreamProcessorService.xpc/Contents/MacOS/SimStreamProcessorService
50756   ??  Ss     0:00.07 /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/SimAudioProcessorServices.simdeviceio/Contents/XPCServices/SimAudioProcessorService.xpc/Contents/MacOS/SimAudioProcessorService

This 2 processes could either manually be killed by typing their PIDs (first number in above lines) with a kill command:

kill -9 50755 50756

or with

ps ax | grep simdeviceio | grep -v grep | awk '{print $1}' | xargs kill -9
like image 92
hwde Avatar answered Oct 25 '22 05:10

hwde