In the new version of the Xcode7.1 in the request HTTP always reported some errors, as long as the HTTP request will error, in IOS9 , Apple changed the original HTTP protocol to the HTTPS protocol, using TLS1.2 SSL encryption request data
There are about 2 kinds of mistakes in the report.
The first kind: App Transport Security has blocked a cleartext HTTP (/HTTP) resource load since it is insecure. Temporary exceptions can be configured via your app ' s info.plist file.
The second type: nsurlsession/nsurlconnection HTTP Load failed (Kcfstreamerrordomainssl, -9807)
The workaround for both of these errors is: In the Presentation project Properties info.plist, add: nsapptransportsecurity, His type is a dictionary, then clicking + will appear 2 options. Then Choose Yes in nsallowsarbitraryloads;
Generally this time can be the HTTP request of the network, if the simulator appears in the second case of the HTTP add an S or remove s (generally as long as the original URL is available)
//__________________________________________________________________________________________
Once again I was doing a backstage player, I used , I checked a few times my code is no problem, but the background is not running sound. If this is the case, it is possible that the Avaudioplayer object is not set to the global object, (possibly because if I was set to a local variable, It is possible that the compiler compiles the code and retain the object off, while playing a music is a time when it can be reation when the object is Dealloc and the program finishes running.
)
When the HTTP address is requested in the IOS9, it will be reported error resolution. Avaudioplayer Why the code is not a problem but does not play the reason