Edoardo Cortese Edoardo Cortese - 1 year ago 266
Swift Question

Accept self-signed certificate with Swift 3

I tried different ways but without success.
With some example from websites i get the following errors.

Argument label [forTrust:] do not match any available overloads:

enter image description here

How can i fix this or use another method?

I'm with Swift 3 and XCode 8.1

Answer Source

In Swift 3, this parameter has been renamed trust instead of forTrust.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download