I'm trying to run a React Native app using Expo in the iOS simulator (iPhone 16 Pro Max running iOS 18.4). I start the local dev server using:
npm start -- --reset-cache Then I press i to open the app in the iOS simulator. The Expo Go app launches, but I get the following error popup:
Local network access required Local network access has been denied. This permission is required to run projects in Expo Go. Enable "Local Network" for Expo Go from the Settings app. However, when I go to Settings > Privacy & Security > Local Network on the simulator, the Expo Go app does not appear in the list, so I can't enable it. (https://i.sstatic.net/OlXpEaP1.png) (https://i.sstatic.net/7AuiURpe.png)
I expected the Expo Go app to request local network access permission and appear in the Local Network section of the Settings app so I could enable it.
I tried:
Restarting the simulator Uninstalling and reinstalling the Expo Go app Resetting network settings on the simulator Starting the dev server with --tunnel and --lan options Running the simulator with different iOS versions But nothing seems to make Expo Go request the local network permission.
Restarting my Mac fixed this. Also see discussion here, people suggest brew upgrade
also.
Hope this helps :)