blob: 8ae6d86157a92c2f0716eb9e1c6e58494d4eded7 [file] [log] [blame]
Adam Snaider1c095c92023-07-08 02:09:58 -04001#!/bin/bash
2#
3# When compiling with --platforms=//:ios_sim_arm64 or --platforms=//:ios_x86_64,
4# the library should not contain any references to macOS (platform 1)
5
6set -e
7
8if [[ "$OSTYPE" != "darwin"* ]]; then
9 echo "This test only makes sense on macOS."
10 exit 0
11fi
12
13if otool -l $1 | grep 'platform 1'; then
14 echo "macOS detected."
15 exit 1
16fi