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

Rein rPavi picture Rein rPavi · Mar 16, 2017 · Viewed 19.7k times · Source

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.

Answer

ulsc picture ulsc · Jul 23, 2019

It seemes 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.