How do I remove redundant iOS simulator entries from Xcode?

亡梦爱人 提交于 2019-11-27 14:37:42

问题


How do I remove all these extra simulators from my Xcode menu?


回答1:


XCode > Window > Devices :

Then use the delete key or click the gear icon to remove simulators.




回答2:


If you want to do this quickly I'd recommend fastlane tools you can reset simulators with one line

fastlane snapshot reset_simulators

install fastlane tools

sudo gem install fastlane

Make sure, you have the latest version of the Xcode command line tools installed:

xcode-select --install

(https://docs.fastlane.tools/actions/capture_ios_screenshots#completely-reset-all-simulators)

And the command is

fastlane snapshot reset_simulators



回答3:


You don't need to delete the Simulators you don't want to see on the run destinations drop-down menu. On Xcode 9 you can just hide the ones that you don't need.

  1. Go to Window > Devices and Simulators (ShiftCmd2)

  2. Pick the Simulator from the left and untick 'Show as run destination' as seen below:




回答4:


You can remove devices easily now in XCode 9, but use the Simulator toolbar. With a Simulator running, go to the top bar and go to Hardware -> Device -> Manage Devices then select Simulators. You are presented with the option [Devices | Simulators] So select simulators. Then work your way down the list, and untick the Simulators, and OS versions you don't want. Too easy. When you look in XCode for a Simulator to use, the list will now be much shorter. Removing unwanted Simulators




回答5:


There is a nice shell script that deletes all simulators and creates a list of new ones for you on GitHub without the need of Fastlane (even though Fastlane is worth to have anyway):

https://github.com/jerolimov/reset_simulators



来源:https://stackoverflow.com/questions/31867549/how-do-i-remove-redundant-ios-simulator-entries-from-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!