Simulate airplane mode in iPhone Simulator

≡放荡痞女 提交于 2019-12-03 04:52:09

问题


Is there any way to simulate airplane mode in the iPhone Simulator?


回答1:


Turn off your network connection on the Mac.




回答2:


You could install Apple's Network Link Conditioner

On Yosemite:

Network Link Conditioner can be found in the "Hardware IO Tools for Xcode" package. This can be downloaded from the Apple Developer Downloads page. Once the download has finished, open the DMG and double-click "Network Link Condition.prefPane" to install (source).

With this preferences panel you could create a profile with 0kbps speed.

On older versions of OSX:

Mountain Lion / Mavericks: Xcode > Open Developer Tool > More Developer Tools
Lion: /Developer/Applications/Utilities/Network Link Conditioner




回答3:


You can use Little Snitch too to temp. block the internet connection for this app.



来源:https://stackoverflow.com/questions/1614802/simulate-airplane-mode-in-iphone-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!