SecCopyErrorMessageString is introduced to iOS since iOS 11.3 (29 March 2018)
https://developer.apple.com/documentation/security/1394686-seccopyerrormessagestring?language=objc
|
#if !TARGET_OS_IPHONE |
|
message = SecCopyErrorMessageString(ret, NULL); |
|
GIT_ERROR_CHECK_ALLOC(message); |
|
|
|
git_error_set(GIT_ERROR_NET, "SecureTransport error: %s", CFStringGetCStringPtr(message, kCFStringEncodingUTF8)); |
|
CFRelease(message); |
|
#else |
|
git_error_set(GIT_ERROR_NET, "SecureTransport error: OSStatus %d", (unsigned int)ret); |
|
GIT_UNUSED(message); |
|
#endif |
This is a easy to fix issue. I'd like to file a PR to fix it.
SecCopyErrorMessageString is introduced to iOS since iOS 11.3 (29 March 2018)
https://developer.apple.com/documentation/security/1394686-seccopyerrormessagestring?language=objc
libgit2/src/libgit2/streams/stransport.c
Lines 29 to 38 in 4d38f13
This is a easy to fix issue. I'd like to file a PR to fix it.