Skip to content

Commit

Permalink
Plant some trees and try Versions/Current
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jun 1, 2024
1 parent 6871a13 commit 6faed8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mavsdk_server/tools/package_mavsdk_server_framework.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,24 @@ xcrun lipo -create -output ${IOS_SIM_FAT_BACKEND_DIR}/mavsdk_server.framework/ma
${IOS_SIM_X64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \
${IOS_SIM_ARM64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server

tree ${IOS_SIM_FAT_BACKEND_DIR}/mavsdk_server.framework

echo "Running codesign for simulator"
xcrun codesign --verbose --sign - ${IOS_SIM_FAT_BACKEND_DIR}/mavsdk_server.framework

mkdir -p ${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 \
${MACOS_X64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server \
${MACOS_ARM64_BACKEND_DIR}/mavsdk_server.framework/mavsdk_server

tree ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework

echo "Running codesign for macos"
xcrun codesign --verbose --sign - ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework
xcrun codesign --verbose --sign - ${MACOS_FAT_BACKEND_DIR}/mavsdk_server.framework/Versions/Current

echo "Creating xcframework..."
xcodebuild -create-xcframework \
Expand Down

0 comments on commit 6faed8a

Please sign in to comment.