Skip to content

执行compile-ffmpeg.sh all时,报错SecIdentityCreate不支持,请问有人遇到过吗 #5653

@YangZeQ

Description

@YangZeQ

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 | }
|
1 error generated.
make: *** [libavformat/tls_securetransport.o] Error 1
make: *** Waiting for unfinished jobs....

报错信息:
libavformat/tls_securetransport.c:168:16: error: 'SecIdentityCreate' is only available on iOS 11.2 or newer [-Werror,-Wunguarded-availability-new]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions