NSURLSession Memory Leaks occur when using web services in IOS

前端 未结 4 918
面向向阳花
面向向阳花 2021-01-31 18:54

I am building an app that uses a web service and to get information from that web service I use NSURLSession and NSURLSessionDataTask.

I am now

4条回答
  •  长发绾君心
    2021-01-31 19:24

    Please see my answer here: https://stackoverflow.com/a/53428913/4437636

    I believe this leak is the same one I was seeing, and only happens when running network traffic through a proxy. My code was fine, but it turned out that an internal bug in the Apple API was causing the leak.

提交回复
热议问题