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