Last active
December 14, 2023 10:26
-
-
Save TomSoderling/9b3d582c4c895dde4ed1eac3f987b764 to your computer and use it in GitHub Desktop.
Bash script for turning off the iOS simulator pop-up message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to disable the iOS Simulator app from showing the "Do you want the application xxxx to accept incoming network connections?" pop-up every time the app is run | |
echo "> Enter password to temporarily shut firewall off" | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | |
echo "> Add Xcode as a firewall exception" | |
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/MacOS/Xcode | |
echo "> Add iOS Simulator as a firewall exception" | |
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator | |
echo "> Re-enable firewall" | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on | |
exit 0 |
Thanks Tom, just what I was searching for!
You're welcome! Glad to help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goes along with this blog post: https://tomsoderling.github.io/Disable-iOS-simulator-connections-popup/