Merge "Delete libc++.a and libc++abi.a on macOS."
diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py
index f187055..8a57da8 100755
--- a/ndk/checkbuild.py
+++ b/ndk/checkbuild.py
@@ -492,6 +492,14 @@
         # depend on them. See http://b/142327416 for more info.
         shutil.rmtree(install_path / 'lib64/cmake')
 
+        # Remove libc++.a and libc++abi.a on Darwin. Now that these files are
+        # universal binaries, they break notarization. Maybe it is possible to
+        # fix notarization by using ditto to preserve APFS extended attributes.
+        # See https://developer.apple.com/forums/thread/126038.
+        if self.host == Host.Darwin:
+            (install_path / 'lib64/libc++.a').unlink()
+            (install_path / 'lib64/libc++abi.a').unlink()
+
 
 def versioned_so(host: Host, lib: str, version: str) -> str:
     """Returns the formatted versioned library for the given host.