diff --git a/devtools/deploy/mac/adjust_mac_bundle.zsh.in b/devtools/deploy/mac/adjust_mac_bundle.zsh.in
index 44a98c3334ce352385d092a77d2da25157653017..c5ab991b1c9776353e031a4f5ae91e708f26225f 100644
--- a/devtools/deploy/mac/adjust_mac_bundle.zsh.in
+++ b/devtools/deploy/mac/adjust_mac_bundle.zsh.in
@@ -289,7 +289,7 @@ for bin in $pkgbins; do
         ref_new="$libname"
         # prepend with library rel. path, if any
         [[ ! -z $librelpth ]] && ref_new="$librelpth/$ref_new"
-        install_name_tool "$bin" -change "$abspth0" "@rpath/$ref_new"
+        install_name_tool "$bin" -change "$abspth0" "@rpath/$ref_new" 2> >(grep -v "invalidate the code signature")
         # make a proper RPATH to refer to the library within the package
         # eg. '@loader_path/../Frameworks/Qt/'
         rpath="@loader_path/"$(find_rpath "$bindir" "$libdir" "$librelpth")
@@ -343,7 +343,7 @@ for bin in $pkgbins; do
     # eg. RPATHS for 'lib/libA.dylib': ../Library , ../Frameworks/Qt
     if [[ ! -z $rpaths_bin_tr ]]; then
         # eg. install_name_tool libA.so -add_rpath RPATH1 -add_rpath RPATH2 ...
-        eval install_name_tool $bin -add_rpath ${rpaths_bin_tr// / -add_rpath }
+        eval install_name_tool $bin -add_rpath ${rpaths_bin_tr// / -add_rpath } 2> >(grep -v "invalidate the code signature")
     fi
 done
 
diff --git a/devtools/deploy/mac/mk_pypack_macos.zsh.in b/devtools/deploy/mac/mk_pypack_macos.zsh.in
index cec63088fade33fbc9c46ec7654a4ec6425b0df0..7eb01138503bbb1e29fd230b53d83de3f227fc8f 100644
--- a/devtools/deploy/mac/mk_pypack_macos.zsh.in
+++ b/devtools/deploy/mac/mk_pypack_macos.zsh.in
@@ -335,7 +335,7 @@ for lib in $libfiles $xlibfiles; do
         # change the dependency path in the library
         # eg. '/usr/local/opt/foo.dylib' => '@rpath/foo.dylib'
         rpth="@rpath/$fnm"
-        install_name_tool "$lib" -change "$pth" "$rpth"
+        install_name_tool "$lib" -change "$pth" "$rpth" 2> >(grep -v "invalidate the code signature")
     done
     log "Changed external-library references in '$lib'"
 done
@@ -344,7 +344,7 @@ for lib in $libfiles; do
     for ref0 ref1 in "${(@kv)ba_deps}"; do
         # change the dependency path in the library
         # eg. '@rpath/_libBornAgainBase.1.so.2' => '@rpath/_libBornAgainBase.so'
-        install_name_tool "$lib" -change "$ref0" "$ref1"
+        install_name_tool "$lib" -change "$ref0" "$ref1" 2> >(grep -v "invalidate the code signature")
     done
     log "Changed BornAgain-library references in '$lib'"
 done
@@ -353,12 +353,12 @@ if [ -z $pydepends_fullpath ] || [ -z $pydepends_filename ]; then
     echo "$TITLE: No Python dependence found."
 else
     for lib in $libfiles; do
-        install_name_tool "$lib" -change "$pydepends_fullpath" "@rpath/$pydepends_filename"
+        install_name_tool "$lib" -change "$pydepends_fullpath" "@rpath/$pydepends_filename" 2> >(grep -v "invalidate the code signature")
     done
     # add proper framework RPATHs
     for lib in $libfiles; do
         for rpth in $py_fmwk_rpaths; do
-            install_name_tool "$lib" -add_rpath "$rpth"
+            install_name_tool "$lib" -add_rpath "$rpth" 2> >(grep -v "invalidate the code signature")
         done
     done
     echo "$TITLE: Changed references to the Python shared library and added framework RPATHs."
@@ -366,7 +366,7 @@ fi
 
 # add proper RPATHs to external libraries
 for lib in $xlibfiles; do
-    install_name_tool "$lib" -add_rpath "@loader_path"
+    install_name_tool "$lib" -add_rpath "@loader_path" 2> >(grep -v "invalidate the code signature")
     echo "$TITLE: Added proper RPATHs to '$lib'"
 done