How to Disable the Network in iOS Simulator

Is it possible to disable the network in iOS Simulator?

I'm afraid not—the simulator shares whatever network connection the OS is using. I filed a Radar bug report about simulating network conditions a while back; you might consider doing the same.

iPad Simulator +Turn Internet On/Off

no, simulator uses the same connection as your mac does. so you can't mannually turn it off for simulator

How to stop Xcode simulator draining network data

Finally i find a temporary solution!

rename the file com.apple.nsurlsessiond(Dont delete) in

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/UserEventPlugins/com.apple.nsurlsessiond.plugin/

to something -com.apple.nsurlsessiond

and also the file nsurlsessiond(Dont delete) in

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/

to something -nsurlsessiond

iOS simulator with internet connection

i think you can solve your problem with this way :
In System Preferences / Network you can rearrange the order in which the computer gains Internet connection. Just place LAN on top of the list.
Sample Image



Related Topics



Leave a reply



Submit