xcrun unable to find simctl

2019-01-21 21:13发布

问题:

Attempting:

xcrun simctl 

in terminal yields:

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

I have Xcode 6.2 Beta.

Any suggestions?

回答1:

I solved this problem by entering

Xcode > Preferences > Locations 

And assigning the Command Line Tools

This is in Xcode Version 7.2 beta (7C46t)



回答2:

I had the same problem. My application was working well but suddenly in next run, it started throwing the "simctl" error. It seems I had started Xcode update installation in the background.

Fix: I just started the Xcode application and it prompted to install some pending tools update. After Xcode updates, my app started working normally.



回答3:

Went to Presences > Locations

in Locations:

Command Line Tools: Choose Xcode(YourVersion Of Xcode) and leave it that way.

It should be fine. This worked for me.



回答4:

In terminal, try this.

xcode-select -s /Applications/Xcode.app

/Applications/Xcode.app is your Xcode.app path.



标签: ios xcode xcrun