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 November 17, 2023 How to enable multi-line cursor editing in Xcode?

In Xcode, you can enable multi-line cursor editing, which allows you to type or edit text at multiple locations simultaneously. This can be incredibly useful for making the same edit on several lines at once. Here’s how you can do it:

question swift xcode August 12, 2020 How to remove a Swift package from a project in Xcode?

If you go to Xcode > File > Swift Packages, you can see options to add a new Swift package, update them, reset caches, and resolve package versions. However, you do not see an option to remove a particular Swift package.

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.