Xcode Simulators: How to recreate simulators automatically?

梦想的初衷 提交于 2019-12-22 14:08:56

问题


My XCode simulators names started appearing with simulators identifiers (like iPad Air - xxxxxxxxxxxxx) instead of iOS versions in simulator selections menu, How can I fix it correctly?

Is there anyway to recreate all simulators automatically?

Thanks,


回答1:


Script to recreate XCode Simulators

I found following solution to recreate XCode simulators automatically and its works like a charm.

For XCode7 : https://gist.github.com/cabeca/3ff77007204e5479f7af

For XCode 6 : https://gist.github.com/cabeca/cbaacbeb6a1cc4683aa5

Steps to run script:

1- Copy and past script in a file, name it 'resetSims.rb'
2- Run script in terminal by using command : ruby /Users/xxx/Desktop/resetSims.rb

Ref : How to execute a Ruby script in Terminal?



来源:https://stackoverflow.com/questions/35599868/xcode-simulators-how-to-recreate-simulators-automatically

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