Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 695
Sam Avatar asked Aug 19 '20 01:08

Sam


2 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 .

like image 79
Muhammad Numan Avatar answered Nov 18 '22 01:11

Muhammad Numan


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

It helped to fix Jenkins

like image 30
Igor Avatar answered Nov 17 '22 23:11

Igor