From a88d78a9cfa747c915cda000c4b85fec31149b57 Mon Sep 17 00:00:00 2001 From: Jonas Vautherin Date: Fri, 10 Sep 2021 02:57:49 +0200 Subject: [PATCH] Fix CI permissions when generating xcframework --- src/mavsdk_server/tools/package_mavsdk_server_framework.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash index e50bd33f4d..4b01b87e4c 100644 --- a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash +++ b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash @@ -19,6 +19,10 @@ ln -sf Versions/Current/Modules ${MACOS_BACKEND_DIR}/mavsdk_server.framework echo "Creating xcframework..." xcodebuild -create-xcframework -framework ${IOS_BACKEND_DIR}/mavsdk_server.framework -framework ${IOS_SIM_BACKEND_DIR}/mavsdk_server.framework -framework ${MACOS_BACKEND_DIR}/mavsdk_server.framework -output ${BUILD_DIR}/mavsdk_server.xcframework +chmod 755 ${BUILD_DIR}/mavsdk_server.xcframework/ios-arm64/mavsdk_server.framework/mavsdk_server +chmod 755 ${BUILD_DIR}/mavsdk_server.xcframework/ios-x86_64-simulator/mavsdk_server.framework/mavsdk_server +chmod 755 ${BUILD_DIR}/mavsdk_server.xcframework/macos-x86_64/mavsdk_server.framework/mavsdk_server + cd ${BUILD_DIR} zip -9 -r mavsdk_server.xcframework.zip mavsdk_server.xcframework