runtime: Build on macOS Mojave DP fails
Unfortunately the SecCertificateCopyPublicKey
API has been deprecated and causes build failure due to the following warning (and -Werror):
/Users/filipnavara/Documents/GitHub/corefx/src/Native/Unix/System.Security.Cryptography.Native.Apple/pal_x509.c:55:21: error:
'SecCertificateCopyPublicKey' is deprecated: first deprecated in macOS 10.14
[-Werror,-Wdeprecated-declarations]
*pOSStatusOut = SecCertificateCopyPublicKey(cert, pPublicKeyOut);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
SecCertificateCopyKey
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:180:10: note:
'SecCertificateCopyPublicKey' has been explicitly marked deprecated here
OSStatus SecCertificateCopyPublicKey(SecCertificateRef certificate, SecKeyRef * __n...
^
1 error generated.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Fix compilation for deprecated API on macOS Mojave preview Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Fix compilation for deprecated API on macOS Mojave preview Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Fix compilation for deprecated API on macOS Mojave preview Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Fix compilation for deprecated API on macOS Mojave preview (#30716) * Fix compilation for deprecated API on macOS Mojave preview Fixes: #30599 * Fixing tests on macOS Mojave — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Proper fix for compilation issue caused by deprecated API in macOS Mojave by using dlsym to call available API rather than suppressing deprecation warnings. Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Proper fix for compilation issue caused by deprecated API in macOS Mojave by using dlsym to call available API rather than suppressing deprecation warnings. Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Proper fix for compilation issue caused by deprecated API in macOS Mojave by using dlsym to call available API rather than suppressing deprecation warnings. Fixes: #30599 — committed to maryamariyan/corefx by maryamariyan 6 years ago
- Fix compilation for deprecated API on macOS Mojave preview (#30716) (#30744) * Fix compilation for deprecated API on macOS Mojave preview Fixes: #30599 — committed to dotnet/corefx by maryamariyan 6 years ago
- Proper fix for compilation issue caused by deprecated API in Mojave (#30815) * Proper fix for compilation issue caused by deprecated API in macOS Mojave by using dlsym to call available API rather t... — committed to dotnet/corefx by maryamariyan 6 years ago
@bartonjs what about the other three codes noted above pulled from Apple sources? Do we need to add those in case they appear in some case we don’t test yet?