8

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

Sam
  • 1,765
  • 11
  • 82
  • 176

4 Answers4

10

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 .

Muhammad Numan
  • 23,222
  • 6
  • 63
  • 80
  • It didn't help, sorry. Even with a `clean build folder` – Sam Aug 26 '20 at 02:26
  • @Sam can you try solution 2 and 3? – Muhammad Numan Aug 26 '20 at 05:30
  • Solution 2 didn't work. Maybe solution 3, but I don't think I have room on my computer for all the simulators. Now that you mention it though, I'm thinking I might have deleted something important in Xcode when I was trying to free up space on my computer – Sam Aug 28 '20 at 04:00
  • Solution 3 didn't work. How many simulators would i have to download? Also, I'm trying to run it on a real device – Sam Aug 28 '20 at 23:56
  • I ended up just deleting Xcode and installing the newest version from https://developer.apple.com/download/more/ . You helped me figure out that the problem was with Xcode, so if you add this solution to your list of solutions I'll mark your answer correct – Sam Aug 29 '20 at 05:42
  • @Sam I have added your solution – Muhammad Numan Aug 29 '20 at 07:10
  • @MuhammadNuman not working any solution. I am using Xcode 14.2 and installing the watchOS 9.1. Please help – Nikunj Jadav Mar 28 '23 at 13:13
4
sudo xcrun simctl shutdown all && sudo xcrun simctl erase all

It helped to fix Jenkins

Igor
  • 4,235
  • 3
  • 34
  • 32
0

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.

Doug Watkins
  • 1,387
  • 12
  • 19
0

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

Hardik Bar
  • 86
  • 6