diff --git a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash index 9420794c1..bbd0c34e5 100644 --- a/src/mavsdk_server/tools/package_mavsdk_server_framework.bash +++ b/src/mavsdk_server/tools/package_mavsdk_server_framework.bash @@ -22,11 +22,13 @@ cp -r ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework ${MACOS_FAT_BACKEND_DIR} #echo "Fixing Modules in macOS framework" #ln -sf Versions/Current/Modules ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework +echo "Running lipo" xcrun lipo -create -output ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \ ${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \ ${MACOS_ARM64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server -xcrun codesign --sign - ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework +echo "Running codesign" +xcrun codesign --sign - ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server echo "Creating xcframework..." xcodebuild -create-xcframework \