AFNetworking compilation error, semantic problem?

I am using the tutorial "mobile.tutsplus.com/tutorials/iphone/ios-sdk_afnetworking/" to understand the use of AFNewtworking. I disabled ARC as suggested, but I think the tutorial is a bit outdated. Since the latest version of AFNetworking requires ARC? I tried compilation without ARC and it showed messages about the need for ARC. I see the following compilation error when compiling 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 problem before?

+5
source share
2 answers
  • add the missing variable to your .pch file:
    #define _AFNETWORKING_PIN_SSL_CERTIFICATES _
+2
source

, #include (.h), AFSSLPinningModePublicKey AFAppDotNetAPIClient.m.

0

All Articles