Skip to content

Commit

Permalink
Merge pull request #1596 from mavlink/fix-ci-xcframework-generation
Browse files Browse the repository at this point in the history
Fix CI permissions when generating xcframework
  • Loading branch information
julianoes authored Nov 4, 2021
2 parents 8896655 + a88d78a commit f0389b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mavsdk_server/tools/package_mavsdk_server_framework.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f0389b4

Please sign in to comment.