Xcode 模拟器:如何自动重新创建模拟器? [英] Xcode Simulators: How to recreate simulators automatically?

查看:43
本文介绍了Xcode 模拟器:如何自动重新创建模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 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

参考:如何在终端中执行 Ruby 脚本?

这篇关于Xcode 模拟器:如何自动重新创建模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆