Reputation: 2563
I want to pin certificate that is in the project bundle.
.pinCertificates(
certificates: ServerTrustPolicy.certificatesInBundle,
validateCertificateChain: true,
validateHost: true
)
This works in Swift 2 but when I update to Swift 3 I got this error:
Type 'ServerTrustPolicy' has no member 'certificatesInBundle'
Anyone who encountered the same issue? May I know what have you replaced with 'certificatesInBundle'?
Upvotes: 1
Views: 619
Reputation: 1176
Function was renamed. Check this: https://github.com/Alamofire/Alamofire/blob/master/Source/ServerTrustPolicy.swift#L122
Upvotes: 1