Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecTrustEvaluate is deprecated in iOS 13.0 and up #536

Closed
15joeybloom opened this issue Sep 1, 2020 · 5 comments
Closed

SecTrustEvaluate is deprecated in iOS 13.0 and up #536

15joeybloom opened this issue Sep 1, 2020 · 5 comments

Comments

@15joeybloom
Copy link

Integration Details (please complete the following information):

  • SDK/Library Version: 4.35.0
  • iOS Version: iOS 14.0
  • Integration type & version: CocoaPods 1.9.1

Describe the bug
SDK does not compile in Xcode 12.0 beta release 6 due to this line:

OSStatus errorCode = SecTrustEvaluate(serverTrust, &result);

'SecTrustEvaluate' is deprecated: first deprecated in iOS 13.0
Replace 'SecTrustEvaluate' with ‘SecTrustEvaluateWithError'

@scannillo
Copy link
Contributor

Hi @15joeybloom - we are working on a major version bump (v5) of the braintree_ios SDK. In v5, the PayPal One Touch framework will be removed.

Temporarily, I would not treat the deprecation warning as a compiler error so you can still use the SDK until we get a new version out.

@scannillo
Copy link
Contributor

Looking now - I notice we also use this function in our BraintreeCore module. I will keep this GH issue open so we can let you know when a release is out with this update.

@scannillo
Copy link
Contributor

scannillo commented Sep 16, 2020

Hi - circling back on this. You can instead add: pod 'Braintree', :inhibit_warnings => true to your Podfile. With this, you should still be able to treat your apps deprecation warnings as errors if you choose.

sestevens added a commit that referenced this issue Nov 16, 2020
* Fix deprecation warning for SecTrustEvaluate method
@sestevens
Copy link
Contributor

sestevens commented Dec 1, 2020

Hi @15joeybloom, we just released a beta version of the SDK that should resolve this deprecation warning. I'll leave this issue open until these changes are in GA.

If you want to try it out, here is the version 5 migration guide.

@sestevens
Copy link
Contributor

This has been fixed in version 5.0.0. Please see our migration guide for steps to upgrade your integration.

nipapadak pushed a commit to BeckTaxi/braintree_ios that referenced this issue Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants