English 中文(简体)
iPad 模拟器+Turn Internet 打开/关闭
原标题:iPad Simulator +Turn Internet On/Off

我正在研究一个App, 需要同时在在线/离线模式下测试, 所以我想知道是否有办法打开/ 关闭 iPad 模拟器的 Internet 连接( 不打开我的 IMAC 互联网服务) 。 请帮助 。

最佳回答

否, 模拟器使用与您mac 相同的连接。 这样您就可以为模拟器关闭它 。

问题回答

完全禁用模拟器网络访问的唯一办法就是卸除您的 Mac 网络连接(或关闭 Wi-fi ), 因为模拟器只是一个在您的 Mac 上运行的过程 。

通常情况下,它足以阻止获取某些资源,例如,无论互联网为您的应用程序提供何种服务。一个代理服务器,例如>>>Charles https://proxyman.io' rel=“nofollow noreferr'>>>Proxyman 将允许您这样做,以便您测试您的应用程序无法访问您的服务器的情况。代理服务器对于解答网络问题、模拟特定服务器响应等也非常宝贵。





相关问题
can we check push notification in simulator? [duplicate]

Possible Duplicate: How can I test Apple Push Notification Service without an iPhone? I want to know that can we receive push notification on iPhone Simulator or not. Also, I want something like ...

crashed on iphone but not on simulator

It is really mind boggling to find out many differences between the iphone and the simulators. I spent several hours trying to figure out why my application ran on the simulator but crashed on my ...

Text misalignment on tableview cells on iPhone device

For some reason, when I am using the iPhone simulator, all of my text in my tableview cells displays correctly. However, when I publish to the device, the text inside of the cell is shifted up to ...

Changing graphics when using iPhone Simulator

To increase productivity I d like our external artists to be able to change graphics in our new iPhone game directly from the iPhone Simulator, so that he can experiment with various graphics without ...

accessing data saved in the iPhone simulator

I m working on a game and I d like to give a non-developer friend a little level editor so they can build levels while I continue working on the development. I quickly knocked up the following to ...

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签