Failed to find newest available simulator runtime - Image.xcassets when building RN app on iOS

Viewed 2813

I am trying to make some adjustments to an app that I haven't touched for a few months.

I am just trying to build the app using xCode and getting this error

enter image description here

I am running the app on my physical device

enter image description here


I have tried doing

Product -> Clean build folder

and

yarn cache clean --force

But the problem persists.


Update I also keep receiving this error

Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7f9a97966130> System content for IBCocoaTouchFramework-ThirteenAndLater <IBScaleFactorDeviceTypeDescription: 0x7f9a9565efe0> scaleFactor=2x'.

It went away when I

  • cleaned my build folder
  • removed my node_modules, Pods, Podfile.lock, and yarn.lock

But then it just came back

This is my launchscreen

enter image description here

4 Answers

Solution 1:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

Solution 2

When upgrading, you may drag around old simulators no longer available with your current version of Xcode. You can clean these by running this command in Terminal:

xcrun simctl delete unavailable

Quit Xcode first just for good measures. From the documentation:

Delete a device or all unavailable devices.

Solution 3:

Installing/Reinstalling Simulators worked!!

Look under (XCode Preferences-> Downloads -> Components)

Solution 4 (Sam Solution)

just delete Xcode and install the newest version from developer.apple.com/download/more .

sudo xcrun simctl shutdown all && sudo xcrun simctl erase all

It helped to fix Jenkins

Try removing your simulator run times by deleting the contents of this folder: "/Library/Developer/CoreSimulator/Profiles/Runtimes" then restarting Xcode and the simulator and trying again.

Sometimes the data there can get old and needs to be rebuilt.

There is no CoreSimulator folder inside Developer for me. Only one folder exists that of CommandLineTools. How to go forward with this because there is neither any simulator image displayed and executing directly the simulator app causes it to crash

Please check from apple developer

Related