Skip to content

Commit e4ea6b4

Browse files
committed
More fixes
1 parent 94103df commit e4ea6b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/quickstart_build_spm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
set -xeuo pipefail
2222

2323
SAMPLE=$1
24+
SAMPLE_DIR=$(echo "$SAMPLE" | perl -ne 'print lc')
25+
SAMPLE_XCODEPROJ=${SAMPLE_DIR}/${SAMPLE}Example.xcodeproj
2426

2527
scripts_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2628

@@ -32,7 +34,7 @@ git clone https://github.com/firebase/quickstart-ios.git
3234

3335
cd quickstart-ios
3436

35-
source "$scripts_dir/quickstart_spm_xcodeproj.sh" "$SAMPLE"
37+
source "$scripts_dir/quickstart_spm_xcodeproj.sh" "$SAMPLE_XCODEPROJ" --branch "$BRANCH_NAME"
3638

3739
# Placeholder GoogleService-Info.plist good enough for build only testing.
3840
cp ./mock-GoogleService-Info.plist ./firebaseai/GoogleService-Info.plist

scripts/quickstart_spm_xcodeproj.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ set -xeuo pipefail
2222
# --- Argument parsing ---
2323
if [[ $# -lt 2 ]]; then
2424
echo "Modify a .xcodeproj to use a specific branch, version, or commit for the"
25-
echo "firebase-ios-sdk SPM dependency.\n"
25+
echo "firebase-ios-sdk SPM dependency."
26+
echo ""
2627
echo "Usage: $0 <path_to.xcodeproj> [--version <version> | --revision <revision> | --prerelease | --branch <branch>]"
2728
exit 1
2829
fi

0 commit comments

Comments
 (0)