我可以在没有"Build and Run"的情况下启动iPhone模拟器吗? [英] Can I start the iPhone simulator without "Build and Run"?

查看:66
本文介绍了我可以在没有"Build and Run"的情况下启动iPhone模拟器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在构建并运行"之前删除模拟器中的应用程序.如何启动模拟器以便删除?如果我通过"build and run"启动它,由于我要修复的错误,我会得到很长的日志输出,该输出会花费一些时间.我想避免这种情况.

I want to delete an app in the simulator before I "build and run". How can I start the simulator so I can do the deletion? If I start it by "build and run" I get a long log output that takes a while because of a bug I'm trying to fix. I'd like to avoid that.

推荐答案

模拟器只是一个应用程序,因此您可以像其他任何应用程序一样运行它.

The simulator is just an application, and as such you can run it like any other application.

要直接从终端运行模拟器,请使用open命令在这些位置前面

To run the simulator straight from terminal prepend these locations with the open command

Xcode 7.x,8.x和9.x

在Xcode 7.x中,iPhone模拟器再次移动:/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app.

In Xcode 7.x, the iPhone Simulator has moved again: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app.

Xcode 6.x

在Xcode 6.x中,iPhone模拟器再次移动,现在位于此处:/Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app.

In Xcode 6.x, the iPhone Simulator has moved yet again, and now resides here: /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app.

Xcode 4.x,5.x

在Xcode 4.x(通过Mountain Lion上的4.5)和Mavericks上的Xcode 5.0.x中,它位于以下位置:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

In Xcode 4.x (through 4.5 on Mountain Lion) and Xcode 5.0.x on Mavericks, it lives here: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

在我的Xcode(4.5.2)版本中,使用停靠图标或Xcode菜单中的Open Developer Tool菜单非常方便:

In my version of Xcode (4.5.2), I find it quite convenient to use the Open Developer Tool menu from either the dock icon or the Xcode menu:

Xcode 3.x

在Xcode 3.x中,它位于此处:

In Xcode 3.x, it lives here:

/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app

在将来的Xcode版本中,它可能会再次移动,这是一个松鼠般的小应用程序.

In some future version of Xcode, it will probably move again, it's a squirrelly little app.

这篇关于我可以在没有"Build and Run"的情况下启动iPhone模拟器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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