Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType

When I tried to run the app in simulators, I hold Xcode 8.3.2 and Xcode 9 beta 1 and my project was running in Xcode 8.3.2. I got the below errors.

Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-2x with runtime SimRuntime : 10.3 (14E269) - com.apple.CoreSimulator.SimRuntime.iOS-10-3
    Failure Reason: Failed to create SimDeviceSet at path /Users/Mac/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.
    Underlying Errors:
        Description: Failed to initialize simulator device set.
        Failure Reason: Failed to subscribe to notifications from CoreSimulatorService.
        Underlying Errors:
            Description: Error returned in reply to notification request: Connection invalid
            Failure Reason: Software caused connection abort
/* com.apple.actool.document.notices */
like image 225
iPC Avatar asked Jun 07 '17 17:06

iPC


3 Answers

For me it did not help cleaning. I had to run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService and then I was able to start the app via the Simulator

like image 137
Daniel Tovesson Avatar answered Nov 12 '22 14:11

Daniel Tovesson


I had this error and solved it by just opening Simulator from the Xcode menu.

Xcode -> Open Developer Tool -> Simulator

Once the simulator was open and finished booting, I cleaned and rebuilt the project.

like image 33
adamup Avatar answered Nov 12 '22 14:11

adamup


Try and Clean the Project and then Run thats what I did

Goto Product > Clean, then run

like image 1
Ash-Bash32 Avatar answered Nov 12 '22 15:11

Ash-Bash32