From 6871a1311023850e8e1fc8eb559e50c6dcc5d10e Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Sat, 1 Jun 2024 14:25:19 +1200 Subject: [PATCH] Try to preserve symlinks --- src/mavsdk_server/tools/package_mavsdk_server_framework.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash index 53bc69dff..d45514396 100644 --- a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash +++ b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash @@ -21,7 +21,7 @@ fi #ln -sf Versions/Current/Modules ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework mkdir -p ${IOS_SIM_FAT_BACKEND_DIR} -cp -R ${IOS_SIM_X64_BACKEND_DIR}/mavsdk_server.framework ${IOS_SIM_FAT_BACKEND_DIR} +cp -a ${IOS_SIM_X64_BACKEND_DIR}/mavsdk_server.framework ${IOS_SIM_FAT_BACKEND_DIR} echo "Running lipo for simulator" xcrun lipo -create -output ${IOS_SIM_FAT_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \ @@ -32,7 +32,7 @@ echo "Running codesign for simulator" xcrun codesign --verbose --sign - ${IOS_SIM_FAT_BACKEND_DIR}/mavsdk_server.framework mkdir -p ${MACOS_FAT_BACKEND_DIR} -cp -R ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework ${MACOS_FAT_BACKEND_DIR} +cp -a ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework ${MACOS_FAT_BACKEND_DIR} echo "Running lipo for macos" xcrun lipo -create -output ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \