From 409ab51036fc4d16cd2c9b4300c3894ffd69c9e8 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Mon, 17 Oct 2022 11:23:08 +0300 Subject: [PATCH] =?UTF-8?q?[iOS]=20workaround=20having=20TBB=20symlink=20i?= =?UTF-8?q?n=20NullkillerAI=E2=80=99s=20RPATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AltStore doesn't sign symlinks --- client/CMakeLists.txt | 1 + ios/rpath_remove_symlinks.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 ios/rpath_remove_symlinks.sh diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 301a21562..07fd813ae 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -272,6 +272,7 @@ if(APPLE_IOS) add_custom_command(TARGET vcmiclient POST_BUILD COMMAND ios/set_build_version.sh "$" COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --component "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}" --config "$" --prefix "$" + COMMAND ios/rpath_remove_symlinks.sh COMMAND ios/codesign.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) diff --git a/ios/rpath_remove_symlinks.sh b/ios/rpath_remove_symlinks.sh new file mode 100755 index 000000000..acdcf4407 --- /dev/null +++ b/ios/rpath_remove_symlinks.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +cd "$CODESIGNING_FOLDER_PATH/Frameworks" +tbbFilename=$(otool -L libNullkiller.dylib | egrep --only-matching 'libtbb\S+') +if [[ -L "$tbbFilename" ]]; then + mv -f "$(readlink "$tbbFilename")" "$tbbFilename" +fi