Udai kumar
Udai kumar

Reputation: 233

Afnetworking throwing error in IOS

Hello Friends I am stuck with my project. I am using AFNETWORKING for API hitting. I used some code for timeout

if (error.code == NSURLErrorTimedOut) {
  //time out error here
}

enter image description here

enter image description here

It was working fine, But I change timeout time by changing the default value from 1 minute to 1:30 minute, then problem appears. AFURLConnectionOperation file showing error

Use of undeclared identifier 'NSURLErrorFailingURLErrorKey'

That affected my all afneworking related project. I changed library files but things are same. Help me, Any one.

Upvotes: 2

Views: 244

Answers (1)

Er. Khatri
Er. Khatri

Reputation: 1414

you can solve it by removing the derived data for xcode., go to

xcode prefrence -> Locations -> derived data

  1. now open derived data in finder

  2. force close the xcode

  3. force close the simulator

  4. clear all derived data

  5. relaunch your XCode project

    the problem might be solved in the case if you have not deleted any iOS framework

Upvotes: 2

Related Questions