aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/darwin/packaging/ios/mkdeb-ios.sh.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/darwin/packaging/ios/mkdeb-ios.sh.in b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
index e84a321548..b1ba3bede9 100644
--- a/tools/darwin/packaging/ios/mkdeb-ios.sh.in
+++ b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
@@ -41,10 +41,11 @@ if [ ! -d $APP ]; then
echo "@APP_NAME@.app not found! are you sure you built $1 target?"
exit 1
fi
-if [ -f "${XBMC_DEPENDS_ROOT}/buildtools-native/bin/fakeroot" ]; then
+
+# also check for SIP (System Integrity Protection) here (via csrutil) - fakeroot et al are not working when it is enabled
+# fall back to oldschool sudo in that case
+if [ -f "${XBMC_DEPENDS_ROOT}/buildtools-native/bin/fakeroot" -a "`csrutil status | grep enabled`"x == "x" ]; then
SUDO="${XBMC_DEPENDS_ROOT}/buildtools-native/bin/fakeroot"
-elif [ -f "/usr/libexec/fauxsu/libfauxsu.dylib" ]; then
- export DYLD_INSERT_LIBRARIES=/usr/libexec/fauxsu/libfauxsu.dylib
elif [ -f "/usr/bin/sudo" ]; then
SUDO="/usr/bin/sudo"
fi