Rob*_*rtL 132 xcode ios-simulator
我想在"构建和运行"之前删除模拟器中的应用程序.如何启动模拟器以便删除?如果我通过"构建并运行"启动它,我得到一个长的日志输出,需要一段时间,因为我正在尝试修复的错误.我想避免这种情况.
Set*_*eth 238
模拟器只是一个应用程序,因此您可以像任何其他应用程序一样运行它.
要直接从终端运行模拟器,请在open命令前面添加这些位置
Xcode 7.x,8.x和9.x.
在Xcode 7.x中,iPhone模拟器再次移动:/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app.
Xcode 6.x
在Xcode 6.x中,iPhone模拟器再次移动,现在就在这里:/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/
在我的Xcode版本(4.5.2)中,我发现使用Open Developer Tool停靠图标或Xcode菜单中的菜单非常方便:

Xcode 3.x
在Xcode 3.x中,它存在于:
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
在Xcode的某个未来版本中,它可能会再次移动,它是一个可靠的小应用程序.
int*_*nta 35
由于XCode 4.3的位置已经改变,现在可以在以下位置找到模拟器:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/
atr*_*eat 35
从终端您可以使用:
open -a iPhone\ Simulator
open -a iOS\ Simulator
open -a Simulator
Run Code Online (Sandbox Code Playgroud)
这一切都取决于模拟器的应用程序名称,这可以随着Xcode的每次迭代而改变.
小智 24
要跟进@jimbojw中的新命令以使用新的Xcode创建快捷方式(通过首选项安装)是:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app /Applications/iPhone\ Simulator.app
Run Code Online (Sandbox Code Playgroud)
这将在您的应用程序文件夹中创建一个快捷方式.
首先,将iOS模拟器添加到应用程序:
ln -s /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app /Applications/iPhone\ Simulator.app
Run Code Online (Sandbox Code Playgroud)
从那里你可以在Finder中打开它或将它拖到启动栏.
资料来源:http://www.bram.us/2010/05/05/xcode-iphone-simulator-location/
这是一个较旧的问题,但如果您只是想从Xcode 4.5 UI运行模拟器,您可以执行以下操作:Xcode> Open Developer Tool> iOS Simulator.
使用Spotlight。
但是只会打开最后一个模拟器。如果您iPad Air 2上次使用过,Spotlight将打开它。如果您想iPhone 6s这次打开,那就是个问题。
| 归档时间: |
|
| 查看次数: |
91979 次 |
| 最近记录: |