减慢iOS模拟器的互联网速度

减慢iOS模拟器的互联网速度

本文介绍了减慢iOS模拟器的互联网速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用随机崩溃了。在慢速互联网连接时会发生这种情况我的办公室互联网速度太快了。

I have a random crash in my iOS app. This happens when on slow internet connection. My office internet speed is too fast.

为了在模拟器上进行测试,我安装了网络链路调节器,如下所述:

For testing on simulator, I installed Network Link Conditioner as mentioned here: Installing Apple's Network Link Conditioner Tool

现在的问题是,我选择了一个较慢的连接配置文件,但我仍然在模拟器中具有正常(快速)的互联网速度。

Now the problem is that, I selected a slower connection profile but still I'm having the normal (fast) internet speed in simulator.

我还创建了自己的配置文件并将下载带宽设置为5kbps但仍然没有用。

I also created my own profile and set the download bandwidth to 5kbps but still no use.

我有:
Mackbook视网膜,OSX 10.7.5,
XCode:4.4.1

I have:Mackbook retina, OSX 10.7.5,XCode: 4.4.1

重新启动Xcode和Simulator也无法正常工作。

Restarting Xcode and Simulator also didn't work.

Network Link Conditioner是否还需要其他设置?或者我应该做些什么来重建崩溃?有什么帮助吗?

Are there any additional settings required for Network Link Conditioner? Or should I do something else to regenerate the crash? Any help?

推荐答案

您可以通过在设备上测试来设置网络以降低特性。转到设置 - >开发人员设置 - >网络链接调节器 - >启用。这适用于运行iOS 6的iPhone / iPad
网络链接调节器也适用于Mac的Xcode附加工具,可在模拟器中进行测试。

You can set the network to slow characteristic by testing on devices. Go to Settings -> Developer Settings -> Network Link Conditioner -> Enable. This is for iPhone/iPad running iOS 6Network Link Conditioner is also available for the Mac in "Additional Tools for Xcode" for testing in the Simulator.

注意:它在设备连接到Xcode后启用,启用开发并在其上运行某些应用程序。

Note: It appears after device has been connected to Xcode, enabled for development and some app run on it.

以下是测试HORRIBLE网络性能的方法:

Here's how you can test HORRIBLE network performance:

这篇关于减慢iOS模拟器的互联网速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 02:11