DEV Community

ochieng seth
ochieng seth

Posted on

No bundle url present.. after building a production build react native

In your info.plist(cd ios/app name/info.plist), change this code

<key>NSAppTransportSecurity</key>
  <dict>
  <key>NSExceptionDomains</key>
  <dict>
Enter fullscreen mode Exit fullscreen mode

to this

<key>NSAppTransportSecurity</key>
  <dict>
    <key>NSExceptionDomains</key>
  <dict>
        <key>localhost</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>
  </dict>
Enter fullscreen mode Exit fullscreen mode

Also you might wanna clean your build, in Xcode you can use shortcut keys.. shift + command + k or click product from top menu then clean build folder in the dropdown

Top comments (0)