Skip to content

Instantly share code, notes, and snippets.

View kkalisz's full-sized avatar

Kamil kkalisz

  • Britenet
  • Lublin, Poland
View GitHub Profile
@kkalisz
kkalisz / disable_firewall_for_ios_simulator.sh
Created July 31, 2023 15:39
This script will disable firewall rules for Xcode and iOS simulator, so no more "Do you want the application xxxx to accept incoming network connections?" prompts will be displayed.
# This script will disable firewall rules for Xcode and iOS simulator, so no more "Do you want the application xxxx to accept incoming network connections?" prompts will be displayed.
# Password prompt will be skipped if current user is super user, for example in most CI/CD runners
echo "Enter password to temporarily disable firewall"
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
echo "Adding Xcode to exceptions"
/usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/MacOS/Xcode
echo "Adding iOS simulator to exceptions"