我想在“构建和运行”之前在模拟器中删除一个应用程序。我如何启动模拟器,以便我可以删除?如果我通过“构建并运行”启动它,我会得到一个很长的日志输出,因为我试图修复一个错误,所以需要一段时间。我想避免这种情况。


当前回答

首先,将iOS模拟器添加到应用程序:

ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app /Applications/iPhone\ Simulator.app

从那里,你可以在Finder中打开它或将它拖到启动栏。

来源:http://www.bram.us/2010/05/05/xcode-iphone-simulator-location/

其他回答

首先,将iOS模拟器添加到应用程序:

ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app /Applications/iPhone\ Simulator.app

从那里,你可以在Finder中打开它或将它拖到启动栏。

来源:http://www.bram.us/2010/05/05/xcode-iphone-simulator-location/

最简单的方法是从Xcode启动模拟器,然后在dock上,按Ctrl +单击图标,选择Keep in dock

对于 Xcode 7.2

打开/应用程序/ xcode /内容/开发/应用程序/ Simulator.app /内容/ MacOS / Simulator.app

sudo。/模拟器

在你的个人资料中添加这条路径是最好的方法。

不打开Xcode:

open /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app/

由于XCode 4.3的位置已经改变,模拟器现在可以在以下位置找到:

/应用程序/ xcode /内容/开发/平台/ iPhoneSimulator.platform /开发/应用程序/