如何在不启动Xcode的情况下运行iPhone模拟器? [英] How to run iPhone emulator WITHOUT starting Xcode?
问题描述
在运行Snow Leopard的旧Mac上,我可以将"ios"输入到聚光灯下,它会自行启动iPhone/iPad模拟器.
On my old Mac running Snow Leopard, I could type "ios" into spotlight and it would start up the iPhone/iPad emulator by itself.
此后,我不得不购买一台运行Lion的新机器.我已经安装了Lion的Xcode,并且已经从首选项面板中安装了开发人员工具选项.
I have since had to get a new machine running Lion. I have installed Xcode for Lion, I have installed the developer tool options from the preferences panel.
但是"ios"选项不再存在了:(现在唯一的方法似乎是运行Xcode,创建一个空项目,然后使用run选项启动模拟器.
But the "ios" option is no longer there :( The only way now seems to be to run Xcode, create an empty project and then launch emulator with the run option.
我已经搜索并搜索了管间和脸部网,但没有任何帮助.
I have searched and searched the intertubes and the facewebs, but nothing helps.
有人知道如何仅在Lion上运行模拟器吗?
Does anyone know how to run only the emulator on Lion?
更新: 这是对下面的@ike_love线程的响应. 不能保证所有的优胜美地机器都可以使用该答案.
UPDATE: THIS IS RESPONSE TO @ike_love thread below. THAT answer is not assured to work on all Yosemite machines.
推荐答案
无需摆弄命令行的最简单方法:
The easiest way without fiddling with command line:
- 一次启动Xcode.
- 运行ios模拟器
- 拖动ios模拟器图标将其停靠.
下次要使用它时,只需单击扩展坞中的ios模拟器图标即可.
Next time you want to use it, just click on the ios simulator icon in the dock.
这篇关于如何在不启动Xcode的情况下运行iPhone模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!