2016-09-14 37 views
2

Warum ist das Ding abstürzt kann einfach nicht herausfindenURLSession.shared Anfrage Absturz Swift 3

 var request = URLRequest(url: URL(string: url)!) 
     request.httpMethod = "POST" 
     request.httpBody = try! JSONSerialization.data(withJSONObject: params, options: []) 
     request.addValue("application/json", forHTTPHeaderField: "Content-Type") 

     let task = URLSession.shared.dataTask(with: request, completionHandler: {data, response, error -> Void in 
      guard let responceSafe = response else { 
      completion([:], 0) 
       return 
      } 
/*some not related code*/ 
} 

hier, wie seltsam das Protokollfehler wie folgt aussieht:

Assertion failed: (isForProxy(authConfig.getConnectionType())), function updateWithResponse, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork/CFNetwork-808.0.2/HTTP/HTTPAuthentication/AuthenticationHelpers.cpp, line 1168. 

Antwort

1

Für mich ist es InMobi, die macht den Ärger. InMobi ist ein 3. SDK. Und wenn ich Code über es entfernen, verschwindet der Absturz!

Verwandte Themen