Index: build/mac/verify_no_objc.sh |
diff --git a/build/mac/verify_no_objc.sh b/build/mac/verify_no_objc.sh |
index 955f9befff27721c31c55bddf26c99b8c788ba3c..e18a5eafb0054259a79caa53132cbbd5c801fc1f 100755 |
--- a/build/mac/verify_no_objc.sh |
+++ b/build/mac/verify_no_objc.sh |
@@ -26,10 +26,9 @@ |
set -eu |
-otool="${DEVELOPER_BIN_DIR:-/usr/bin}/otool" |
executable="${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}" |
-if "${otool}" -arch i386 -o "${executable}" | grep -q '^Contents.*section$'; \ |
+if xcrun otool -arch i386 -o "${executable}" | grep -q '^Contents.*section$'; \ |
then |
echo "${0}: ${executable} has an __OBJC,__image_info section" 2>&1 |
exit 1 |