Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Build Failed at compile time with issue "failed to find a suitable device for the type SimDeviceType"

I am getting following compile time issue when running the app with Xcode 10.3 beta 2 on iPad Air, I am getting the below issue.

Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-2x with runtime SimRuntime : 10.3 (14E5239d) - com.apple.CoreSimulator.SimRuntime.iOS-10-3

Any help is greatly appreciated.

like image 436
Rein rPavi Avatar asked Mar 16 '17 00:03

Rein rPavi


3 Answers

It seems like the old simulator process remained open in the background during an XCode update.

Simply running

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

in terminal may solve the problem.
There shouldn't be a need for cleaning the project and/or build folder.

like image 186
ulsc Avatar answered Oct 25 '22 11:10

ulsc


If you quit Xcode and still get the same error, then try clean (command + shift + option + k) and select option "Clean" in popup. Repeat this 2 to 3 times. It works in my case.

like image 23
Mayur Tanna Avatar answered Oct 25 '22 13:10

Mayur Tanna


I was experiencing the same problem. In my case, I had launched the Simulator from a previous version of Xcode prior to building. The problem persisted when I quit the simulator, but restarting Xcode solved it for me.

like image 7
Eric G Avatar answered Oct 25 '22 12:10

Eric G