NSURLSession/NSURLConnection HTTP load failed on iOS 9

前端 未结 13 1432
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:20

Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager.

__block NSURLSessionDataTask *task = [self.sessionMana         


        
13条回答
  •  日久生厌
    2020-11-22 05:48

    I have solved it with adding some key in info.plist. The steps I followed are:

    I Opened my project's info.plist file

    Added a Key called NSAppTransportSecurity as a Dictionary.

    Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as like following image. enter image description here

    Clean the Project and Now Everything is Running fine as like before.

    Ref Link: https://stackoverflow.com/a/32609970

提交回复
热议问题