执行compile-ffmpeg.sh all 时,出现 SecIdentityCreate 不支持 的错误,有人遇到过吗?
libavformat/tcp.c:136:25: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement] 136 | TCPAddrinfoRequest *req = (TCPAddrinfoRequest *)opaque; | ^ CC libavformat/teeproto.o 1 warning generated. CC libavformat/tls.o CC libavformat/tls_securetransport.o CC libavformat/udp.o CC libavformat/url.o libavformat/tls_securetransport.c:168:16: **error**: 'SecIdentityCreate' is only available on iOS 11.2 or newer [-Werror,-Wunguarded-availability-new] 168 | if (!(id = SecIdentityCreate(kCFAllocatorDefault, | ^~~~~~~~~~~~~~~~~ libavformat/tls_securetransport.c:41:16: note: 'SecIdentityCreate' has been marked as being introduced in iOS 11.2 here, but the deployment target is iOS 7.0.0 41 | SecIdentityRef SecIdentityCreate(CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey); | ^ libavformat/tls_securetransport.c:168:16: note: enclose 'SecIdentityCreate' in a __builtin_available check to silence this warning 168 | if (!(id = SecIdentityCreate(kCFAllocatorDefault, | ^~~~~~~~~~~~~~~~~ 169 | (SecCertificateRef)CFArrayGetValueAtIndex(certArray, 0), 170 | (SecKeyRef)CFArrayGetValueAtIndex(keyArray, 0)))) { 171 | ret = AVERROR_UNKNOWN; 172 | goto end; 173 | } |
内容来源: bilibili/ijkplayer