Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compilation error AFNetworking , Semantic issue?

I am using the tutorial "mobile.tutsplus.com/tutorials/iphone/ios-sdk_afnetworking/" for understanding the use of AFNewtworking. I disabled ARC as suggested,but I think the tutorial is a bit old. Because the latest version of AFNetworking requires ARC ? I tried compiling without ARC and it showed messages saying ARC is required. I am seeing the following compilation error when I compile with ARC enabled.

  "/Users/user/Documents/NetworkingisFun/NetworkingisFun/AFNetworking-AFNetworking-215a32e/Example/Classes/AFAppDotNetAPIClient.m:54:40: Use of undeclared identifier 'AFSSLPinningModePublicKey'"

Has anyone seen this issue before ?

like image 885
user1524625 Avatar asked Nov 03 '22 23:11

user1524625


1 Answers

  • add missing variable to your .pch file:
    #define _AFNETWORKING_PIN_SSL_CERTIFICATES_
like image 50
Cuc Nguyen Avatar answered Nov 13 '22 08:11

Cuc Nguyen