there is a potential possibility we can't build this on the 10.15 macs: https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md#system-requirements in particular: >to check whether you have it, and what version you have. mac_sdk_official_version in mac_sdk.gni is the SDK version used on all the bots and for official builds, so that version is guaranteed to work. Building with a newer SDK usually works too (please fix or file a bug if it doesn't). >Building with an older SDK might also work, but if it doesn‘t then we won’t accept changes for making it work. >The easiest way to get the newest SDK is to use the newest version of Xcode, which often requires using the newest version of macOS. We don‘t use Xcode itself much, so if you’re know what you're doing, you can likely get the build working with an older version of macOS as long as you get a new version of the macOS SDK on it So using a newer sdk on an older mac is not guaranteed to work, and could be a bit hacky. I am finding that the older sdk is not working the 10.15 mac workers have macos 11 sdk, not 13. We do not have permissions to move the 13 sdk into the right file path for the chromium build scripts (will look into if there is a possibility of getting this permission during run time) the current failure in using the 11 sdk: ``` [task 2023-05-19T05:23:22.837Z] FAILED: obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/net/net/x509_util_apple.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCR_XCODE_VERSION=1220 -DCR_CLANG_REVISION=\"llvmorg-17-init-10134-g3da83fba-1\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=f8279b01085b800724f5c5629dc365b9f040dc53 -D_LIBCPP_ENABLE_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DNET_IMPLEMENTATION -DENABLE_BUILT_IN_DNS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../third_party/zlib -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/brotli/include -Wall -Werror -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -femit-dwarf-unwind=no-compact-unwind -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomplete-member-pointers -arch x86_64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacos-version-min=10.13 -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -O2 -DPROTOBUF_ALLOW_DEPRECATED=1 -Wexit-time-destructors -std=c++20 -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -include obj/net/net/precompile.h-cc -c ../../net/cert/x509_util_apple.cc -o obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:148:9: error: use of undeclared identifier 'SecTrustCopyCertificateChain'; did you mean 'SecTrustGetCertificateCount'? [task 2023-05-19T05:23:22.837Z] SecTrustCopyCertificateChain(trust)); [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] SecTrustGetCertificateCount [task 2023-05-19T05:23:22.837Z] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:494:9: note: 'SecTrustGetCertificateCount' declared here [task 2023-05-19T05:23:22.837Z] CFIndex SecTrustGetCertificateCount(SecTrustRef trust) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:147:12: error: no matching conversion for functional-style cast from 'CFIndex' (aka 'long') to 'base::ScopedCFTypeRef<CFArrayRef>' (aka 'ScopedTypeRef<const __CFArray *, internal::ScopedCFTypeRefTraits<const __CFArray *>>') [task 2023-05-19T05:23:22.837Z] return base::ScopedCFTypeRef<CFArrayRef>( [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:55:22: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'element_type' (aka 'const __CFArray *') for 1st argument [task 2023-05-19T05:23:22.837Z] explicit constexpr ScopedTypeRef( [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:63:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'const ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(const ScopedTypeRef<T, Traits>& that) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:77:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(ScopedTypeRef<T, Traits>&& that) : object_(that.object_) { [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:71:12: note: candidate template ignored: could not match 'ScopedTypeRef<R, RTraits>' against 'CFIndex' (aka 'long') [task 2023-05-19T05:23:22.837Z] explicit ScopedTypeRef(const ScopedTypeRef<R, RTraits>& that_as_subclass) ``` and if one looks into the source code, there was some changes regarding `SecTrustCopyCertificateChain` and `SecTrustGetCertificateCount'` between 11 and 13, so it could be possible that using the 13 sdk on an older OS/xcode could be the solution (tbd)
Bug 1820216 Comment 5 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
there is a potential possibility we can't build this on the 10.15 macs: https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md#system-requirements in particular: >to check whether you have it, and what version you have. mac_sdk_official_version in mac_sdk.gni is the SDK version used on all the bots and for official builds, so that version is guaranteed to work. Building with a newer SDK usually works too (please fix or file a bug if it doesn't). >Building with an older SDK might also work, but if it doesn‘t then we won’t accept changes for making it work. >The easiest way to get the newest SDK is to use the newest version of Xcode, which often requires using the newest version of macOS. We don‘t use Xcode itself much, so if you’re know what you're doing, you can likely get the build working with an older version of macOS as long as you get a new version of the macOS SDK on it So using a newer sdk on an older mac is not guaranteed to work, and could be a bit hacky. I am finding that the older sdk is not working the 10.15 mac workers have macos 11 sdk, not 13. We do not have permissions to move the 13 sdk (from the existing toolchain fetches we have) into the right file path for what the chromium build scripts expect, `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs` I will look into if there is a possibility of getting this permission during run time the current failure in using the 11 sdk: ``` [task 2023-05-19T05:23:22.837Z] FAILED: obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/net/net/x509_util_apple.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCR_XCODE_VERSION=1220 -DCR_CLANG_REVISION=\"llvmorg-17-init-10134-g3da83fba-1\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=f8279b01085b800724f5c5629dc365b9f040dc53 -D_LIBCPP_ENABLE_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DNET_IMPLEMENTATION -DENABLE_BUILT_IN_DNS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../third_party/zlib -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/brotli/include -Wall -Werror -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -femit-dwarf-unwind=no-compact-unwind -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomplete-member-pointers -arch x86_64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacos-version-min=10.13 -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -O2 -DPROTOBUF_ALLOW_DEPRECATED=1 -Wexit-time-destructors -std=c++20 -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -include obj/net/net/precompile.h-cc -c ../../net/cert/x509_util_apple.cc -o obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:148:9: error: use of undeclared identifier 'SecTrustCopyCertificateChain'; did you mean 'SecTrustGetCertificateCount'? [task 2023-05-19T05:23:22.837Z] SecTrustCopyCertificateChain(trust)); [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] SecTrustGetCertificateCount [task 2023-05-19T05:23:22.837Z] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:494:9: note: 'SecTrustGetCertificateCount' declared here [task 2023-05-19T05:23:22.837Z] CFIndex SecTrustGetCertificateCount(SecTrustRef trust) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:147:12: error: no matching conversion for functional-style cast from 'CFIndex' (aka 'long') to 'base::ScopedCFTypeRef<CFArrayRef>' (aka 'ScopedTypeRef<const __CFArray *, internal::ScopedCFTypeRefTraits<const __CFArray *>>') [task 2023-05-19T05:23:22.837Z] return base::ScopedCFTypeRef<CFArrayRef>( [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:55:22: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'element_type' (aka 'const __CFArray *') for 1st argument [task 2023-05-19T05:23:22.837Z] explicit constexpr ScopedTypeRef( [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:63:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'const ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(const ScopedTypeRef<T, Traits>& that) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:77:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(ScopedTypeRef<T, Traits>&& that) : object_(that.object_) { [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:71:12: note: candidate template ignored: could not match 'ScopedTypeRef<R, RTraits>' against 'CFIndex' (aka 'long') [task 2023-05-19T05:23:22.837Z] explicit ScopedTypeRef(const ScopedTypeRef<R, RTraits>& that_as_subclass) ``` and if one looks into the source code, there was some changes regarding `SecTrustCopyCertificateChain` and `SecTrustGetCertificateCount'` between 11 and 13, so it could be possible that using the 13 sdk on an older OS/xcode could be the solution (tbd)
there is a potential possibility we can't build this on the 10.15 mac workers: https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md#system-requirements in particular: >to check whether you have it, and what version you have. mac_sdk_official_version in mac_sdk.gni is the SDK version used on all the bots and for official builds, so that version is guaranteed to work. Building with a newer SDK usually works too (please fix or file a bug if it doesn't). >Building with an older SDK might also work, but if it doesn‘t then we won’t accept changes for making it work. >The easiest way to get the newest SDK is to use the newest version of Xcode, which often requires using the newest version of macOS. We don‘t use Xcode itself much, so if you’re know what you're doing, you can likely get the build working with an older version of macOS as long as you get a new version of the macOS SDK on it So using a newer sdk on an older mac is not guaranteed to work, and could be a bit hacky. I am finding that the older sdk is not working the 10.15 mac workers have macos 11 sdk, not 13. We do not have permissions to move the 13 sdk (from the existing toolchain fetches we have) into the right file path for what the chromium build scripts expect, `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs` I will look into if there is a possibility of getting this permission during run time the current failure in using the 11 sdk: ``` [task 2023-05-19T05:23:22.837Z] FAILED: obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/net/net/x509_util_apple.o.d -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCR_XCODE_VERSION=1220 -DCR_CLANG_REVISION=\"llvmorg-17-init-10134-g3da83fba-1\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=f8279b01085b800724f5c5629dc365b9f040dc53 -D_LIBCPP_ENABLE_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DNET_IMPLEMENTATION -DENABLE_BUILT_IN_DNS -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../third_party/zlib -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/brotli/include -Wall -Werror -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -femit-dwarf-unwind=no-compact-unwind -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomplete-member-pointers -arch x86_64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacos-version-min=10.13 -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -O2 -DPROTOBUF_ALLOW_DEPRECATED=1 -Wexit-time-destructors -std=c++20 -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -include obj/net/net/precompile.h-cc -c ../../net/cert/x509_util_apple.cc -o obj/net/net/x509_util_apple.o [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:148:9: error: use of undeclared identifier 'SecTrustCopyCertificateChain'; did you mean 'SecTrustGetCertificateCount'? [task 2023-05-19T05:23:22.837Z] SecTrustCopyCertificateChain(trust)); [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] SecTrustGetCertificateCount [task 2023-05-19T05:23:22.837Z] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h:494:9: note: 'SecTrustGetCertificateCount' declared here [task 2023-05-19T05:23:22.837Z] CFIndex SecTrustGetCertificateCount(SecTrustRef trust) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../net/cert/x509_util_apple.cc:147:12: error: no matching conversion for functional-style cast from 'CFIndex' (aka 'long') to 'base::ScopedCFTypeRef<CFArrayRef>' (aka 'ScopedTypeRef<const __CFArray *, internal::ScopedCFTypeRefTraits<const __CFArray *>>') [task 2023-05-19T05:23:22.837Z] return base::ScopedCFTypeRef<CFArrayRef>( [task 2023-05-19T05:23:22.837Z] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:55:22: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'element_type' (aka 'const __CFArray *') for 1st argument [task 2023-05-19T05:23:22.837Z] explicit constexpr ScopedTypeRef( [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:63:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'const ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(const ScopedTypeRef<T, Traits>& that) [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:77:3: note: candidate constructor not viable: no known conversion from 'CFIndex' (aka 'long') to 'ScopedTypeRef<const __CFArray *, ScopedCFTypeRefTraits<const __CFArray *>>' for 1st argument [task 2023-05-19T05:23:22.837Z] ScopedTypeRef(ScopedTypeRef<T, Traits>&& that) : object_(that.object_) { [task 2023-05-19T05:23:22.837Z] ^ [task 2023-05-19T05:23:22.837Z] ../../base/mac/scoped_typeref.h:71:12: note: candidate template ignored: could not match 'ScopedTypeRef<R, RTraits>' against 'CFIndex' (aka 'long') [task 2023-05-19T05:23:22.837Z] explicit ScopedTypeRef(const ScopedTypeRef<R, RTraits>& that_as_subclass) ``` and if one looks into the source code, there was some changes regarding `SecTrustCopyCertificateChain` and `SecTrustGetCertificateCount'` between 11 and 13, so it could be possible that using the 13 sdk on an older OS/xcode could be the solution (tbd)