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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -