Skip to content

Commit 13c86d1

Browse files
committed
fix symredirect-host-build for ios
1 parent eacbb4f commit 13c86d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

symredirect-host-build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ fi
1919
echo "*** Building the symredirect-host executable ..."
2020
clang++ -v -std=c++11 $EXTRA_HEADER_FLAG -o symredirect-host symredirect.cpp
2121

22+
if command -v ldid; then
23+
echo "*** Signing the symredirect-host with entitlements ..."
24+
ldid -S./entitlements.plist ./symredirect-host
25+
fi
26+
27+
if [ -f /basebin/fastPathSign ]; then
28+
echo "*** Signing the symredirect-host with fastPathSign ..."
29+
/basebin/fastPathSign ./symredirect-host
30+
fi
31+
2232
echo "*** Checking built symredirect-host executable ..."
2333

2434
chmod +x ./symredirect-host
@@ -27,4 +37,5 @@ chmod +x ./symredirect-host
2737

2838
echo "*** Installing symredirect-host to /usr/local/bin/symredirect ..."
2939
sudo rm -f /usr/local/bin/symredirect #clear signature cache
40+
sudo mkdir -p /usr/local/bin
3041
sudo cp symredirect-host /usr/local/bin/symredirect

0 commit comments

Comments
 (0)