Xcode 模拟器:如何自动重新创建模拟器? [英] Xcode Simulators: How to recreate simulators automatically?
问题描述
我的 XCode 模拟器名称开始出现模拟器标识符(如 iPad Air - xxxxxxxxxxxxx
)而不是模拟器选择菜单中的 iOS 版本,我该如何正确修复它?
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?
谢谢,
推荐答案
重新创建 XCode 模拟器的脚本
我发现以下解决方案可以自动重新创建 XCode 模拟器,并且它的工作原理非常棒.
I found following solution to recreate XCode simulators automatically and its works like a charm.
对于 XCode7:https://gist.github.com/cabeca/3ff77007204e5479f7af
对于 XCode 6:https://gist.github.com/cabeca/cbaacbeb6a1cc4683aa5
For XCode 6 : https://gist.github.com/cabeca/cbaacbeb6a1cc4683aa5
运行脚本的步骤:
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
这篇关于Xcode 模拟器:如何自动重新创建模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!