From b601925bf2b44493fe1403c7b9000eefdcf33d5e Mon Sep 17 00:00:00 2001 From: Giorgio Azzinnaro Date: Wed, 1 Jan 2025 12:35:21 +0100 Subject: [PATCH] ci(ios): fix missing dart on post build --- ios/ci_scripts/ci_post_clone.sh | 4 ++-- ios/ci_scripts/ci_post_xcodebuild.sh | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ios/ci_scripts/ci_post_clone.sh b/ios/ci_scripts/ci_post_clone.sh index 74f6b9a1..c979464e 100755 --- a/ios/ci_scripts/ci_post_clone.sh +++ b/ios/ci_scripts/ci_post_clone.sh @@ -7,10 +7,10 @@ set -e # The default execution directory of this script is the ci_scripts directory. -cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. +cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo. # Install Flutter using git. -git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter +git clone https://github.com/flutter/flutter.git --depth 1 -b stable "$HOME/flutter" export PATH="$PATH:$HOME/flutter/bin" # Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms. diff --git a/ios/ci_scripts/ci_post_xcodebuild.sh b/ios/ci_scripts/ci_post_xcodebuild.sh index 00fcdcd9..120a4f12 100755 --- a/ios/ci_scripts/ci_post_xcodebuild.sh +++ b/ios/ci_scripts/ci_post_xcodebuild.sh @@ -4,9 +4,12 @@ set -e # The default execution directory of this script is the ci_scripts directory. -cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. +cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo. -# Run Sentry dart plugin. +# Make Flutter and Dart available in the PATH (it was already installed in the ci_post_clone.sh script) +export PATH="$PATH:$HOME/flutter/bin" + +# Run Sentry Dart plugin to upload source maps and debug symbols to Sentry. dart run sentry_dart_plugin exit 0