Loading...

xcrun: error: unable to find utility simctl, not a developer tool or in PATH

question xcode apple
Ram Patra Published on October 1, 2024

The error message you’re encountering indicates that the simctl utility is not recognized, which usually means that your command line tools are not properly configured or that the path to Xcode’s command line tools is not set correctly. Here are steps to resolve this issue:

1. Install Command Line Tools

Make sure you have the Xcode command line tools installed. You can do this by running the following command in your terminal:

xcode-select --install

If the tools are already installed, you’ll see a message indicating so.

2. Set the Xcode Command Line Tools Path

If the command line tools are installed but simctl is still not found, you might need to set the path to the Xcode command line tools manually. Use this command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

This command points the system to the correct directory for Xcode tools.

3. Check Xcode’s Path

To check if the correct path is set, you can run:

xcode-select -p

This should output the path to Xcode’s Developer folder. If it does not, repeat step 2.

4. Update Xcode

Ensure that you have the latest version of Xcode installed. You can update it from the Mac App Store.

5. Restart Terminal

After making these changes, restart your terminal to ensure that the new path is recognized.

6. Use Full Path to simctl

If you still have issues, you can try using the full path to simctl. The default path is:

/Applications/Xcode.app/Contents/Developer/usr/bin/simctl

Try running your command like this:

/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list

7. Reboot Your Mac

As a last resort, restarting your Mac can sometimes help resolve path issues.

After following these steps, try running the simctl command again, and you should be able to access the iOS Simulator tools without issue. Let me know how it goes!

Presentify

Take your presentation to the next level.

FaceScreen

Put your face and name on your screen.

ToDoBar

Your to-dos on your menu bar.

Ram Patra Published on October 1, 2024
Image placeholder

Keep reading

If this article was helpful, others might be too

question xcode apple September 30, 2024 Destinations vs Targets in Xcode and when to use which

In Xcode, destinations and targets serve different purposes. Here’s a breakdown of when to use each:

question xcode sf symbol October 15, 2023 SF Symbol for the new X Social Network (previously Twitter)

I was looking for the SF Symbol for the latest Twitter icon, yes the X icon, but I couldn’t find any online. So, I created one here: https://github.com/rampatra/assets/blob/main/SFSymbols/X%20Social%20Network.svg. This works with the latest SF Symbol 5 so you can either import it to your SF Symbols app or use it directly in your Xcode by creating a new Symbol Image Set like shown below.

question apple app development August 11, 2022 How to notarize a dmg or zip file with the help of Xcode's Notary Tool?

With Xcode 13 and later, notarization via command-line has come down to these 2 basically: