React Native No Bundle Url Present

React Native No Bundle Url Present

In the latest post about React native - build for iOS App store deploy there was a step about removing NSExceptionAllowsInsecureHTTPLoads before publishing to the App store.

After doing that step I was happy and tired and didn’t add that key into the info.plist again before going on vacation. Bad move. I spent an hour figuring out why my app wouldn’t start when running react-native run-ios. Instead i got the error No bundle URL Present..

Info.plist

By adding the following to info.plist it started to work again:

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSExceptionDomains</key>
  <dict>
    <key>localhost</key>
    <dict>
      <key>NSExceptionAllowsInsecureHTTPLoads</key>
      <true/>
    </dict>
  </dict>
</dict>

However this is not the only thing that could produce this error. Checkout this Github issue if the solution above does not help.