ios - Error with AFNETWORKING -


i try install afnetworking in objective-c application.

i have followed instructions in tutorial: https://infinum.co/the-capsized-eight/how-to-make-your-ios-apps-more-secure-with-ssl-pinning

i have readden "afhttprequestoperationmanager" remplaced "afhttpsessionmanager" so:

i declared property:

@property (nonatomic) afhttpsessionmanager *manager; 

then added in init function:

afsecuritypolicy *policy = [afsecuritypolicy policywithpinningmode:afsslpinningmodepublickey]; [self.manager setsecuritypolicy:policy]; 

i added certificate in project.

but when run code there error:

error: error domain=nsurlerrordomain code=-999 "cancelled" userinfo={nserrorfailingurlkey=my_url, nslocalizeddescription=cancelled, nserrorfailingurlstringkey=my_url}

i tried set certificate url manually same error happen.

i checked on internet , tried lots solutions nothing worked. fix error please ?

thanks


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -