New rules cause a Transport Security Error in XCode when trying to test an app using an emulator that connects to a localhost without an SSL certificate. You can add the following code to allow testing on a development server.
Add the following to the platforms/ios/yourappname/YourAppName-Info.plist
file
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localserver.dev</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>