xcrun unable to find simctl

2019-01-21 21:24发布

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?

标签: ios xcode xcrun
4条回答
萌系小妹纸
2楼-- · 2019-01-21 21:44

In terminal, try this.

xcode-select -s /Applications/Xcode.app

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

查看更多
唯我独甜
3楼-- · 2019-01-21 21:46

I solved this problem by entering

Xcode > Preferences > Locations 

And assigning the Command Line Tools

This is in Xcode Version 7.2 beta (7C46t)

查看更多
来,给爷笑一个
4楼-- · 2019-01-21 21:46

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.

查看更多
男人必须洒脱
5楼-- · 2019-01-21 21:52

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.

查看更多
登录 后发表回答