Skip to content

Instantly share code, notes, and snippets.

@steverichey
Created July 30, 2018 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverichey/47b3f7c38d8f329b0364c759a8cefbe7 to your computer and use it in GitHub Desktop.
Save steverichey/47b3f7c38d8f329b0364c759a8cefbe7 to your computer and use it in GitHub Desktop.
In theory, allows the iOS simulator to bypass the firewall. May no longer be needed, or it works so well I no longer get the dialog prompt.
#!/bin/sh
# requires sudo
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment