react-native-ssl-pinning icon indicating copy to clipboard operation
react-native-ssl-pinning copied to clipboard

iOS - got error compiling RNSslPinning.m (AFNetworking.h file not found)

Open hey68you opened this issue 4 years ago • 0 comments

When I did the npm install, I had to use the --force flag (I'm on react-native 0.59.8) - I think it was a peer dependency problem. Xcode version Version 13.1 (13A1030d) Macbook - Big Sur 11.6

I tried to find a solution for a compile error in file RNSslPinning.m (AFNetworking.h file not found).

I think I correctly installed the Pod correctly and ran the react-native link, etc.

As a hack work-around which works, I manually copied all the .h header listed files below from: /ios/Pods/AFNetworking/AFNetworking

to: /node_modules/react-native-ssl-pinning/ios/RNSslPinning

AFCompatibilityMacros.h AFHTTPSessionManager.h AFNetworkReachabilityManager.h AFNetworking.h AFSecurityPolicy.h AFURLRequestSerialization.h AFURLResponseSerialization.h AFURLSessionManager.h

hey68you avatar Jan 13 '22 14:01 hey68you