What Is "Error in _Connection_Block_Invoke_2: Connection Interrupted" in iOS

iOS: error in __connection_block_invoke_2: Connection interrupted

So I fixed the issue.

You can't use AVCaptureMovieFileOutput and AVCaptureVideoDataOutput simultaneously. I took out AVCaptureMovieFileOutput, and the AVCaptureVideoDataOutput delegate is called.

UIWebView in iOS Swift project give a white screen and the output error in __connection_block_invoke_2: Connection interrupted

I dont know you add TransportSecurity to your info.plist or not if not add thus line of code to your project since from ios 9 apple change TransportSecurity then in your code you have 2 'www' in "https://www.www.google.com/" I fixed that and checked, it's work like charm

  <key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>your.URL.come</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>



Related Topics



Leave a reply



Submit