xcode 如何减慢 iPhone 互联网连接速度来测试应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30656173/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to slow down iPhone internet connection speed to test app?
提问by sunny
Apologies in advance - it seems certain I am duplicating an existing question, but I can't find it. How can I slow down the internet connection speed of my iPhone to test an app? I see many ways to do it for the Xcode simulated (like this Slow down internet for iOS simulator, https://apple.stackexchange.com/questions/24066/how-to-simulate-slow-internet-connections-on-the-mac) but I need to test in-app purchases, which apparently can only be tested on an actual device. I have searched through the Developer panel in the settings of my iPhone (iOS 8.3) but nothing looks promising there. Thanks for any tips.
提前道歉 - 似乎可以肯定我正在复制一个现有的问题,但我找不到它。如何降低 iPhone 的互联网连接速度以测试应用程序?我看到很多方法可以为模拟的 Xcode 做这件事(比如iOS 模拟器的慢速互联网,https://apple.stackexchange.com/questions/24066/how-to-simulate-slow-internet-connections-on-the -mac) 但我需要测试应用内购买,这显然只能在实际设备上进行测试。我在我的 iPhone (iOS 8.3) 的设置中搜索了开发人员面板,但那里看起来没有任何希望。感谢您提供任何提示。
回答by AdamPro13
Go to Settings
-> Developer
-> Network Link Conditioner
(that's the section title, the actual table view cell says Status
)
转到Settings
-> Developer
-> Network Link Conditioner
(这是部分标题,实际的表格视图单元格说Status
)
There you can enable the Network Link Conditioner and set whatever speed you deem fit (or even create a new one).
在那里您可以启用网络链接调节器并设置您认为合适的任何速度(甚至创建一个新速度)。
回答by Josh O'Connor
Xcode 9 you need to download Additional tools for Xcode 9
你需要下载Xcode 9 Additional tools for Xcode 9
https://developer.apple.com/download/more/