Skip to content

Commit

Permalink
Merge b3857d5 into 482be3b
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-ebstein-pass-culture authored Sep 26, 2024
2 parents 482be3b + b3857d5 commit 9cf6488
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/installation/iOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In order to launch the app in the Simulator or on your external Apple device, yo
1. Create an [Apple Developer passCulture account](https://developer.apple.com/)
2. You need to use [the 14.2 Xcode version](https://developer.apple.com/download/all/?q=xcode%2014.2) on old Mac OS X, and [the 15 XCode version](https://developer.apple.com/download/all/?q=xcode%2015) on Mac OS X Sonoma or later, with an Apple Developer account (follow the 1st step).
2. You need to [install](https://xcodereleases.com) the [version specified in `XCODE_SUPPORTED_VERSION`](../../scripts/check_xcode_version.sh)
3. Install a simulator if not already in Xcode
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
"fix:lint": "eslint . --ext .js,.ts,.tsx,.mjs --fix",
"generate:api:client": "SWAGGER_CODEGEN_CLI_VERSION=3.0.32 ./scripts/generate_api_client.sh",
"generate:api:client:silicon": "SWAGGER_CODEGEN_CLI_VERSION=3.0.32 ./scripts/generate_api_client_silicon.sh",
"ios:prod": "react-native run-ios --scheme PassCulture-Production",
"ios:staging": "react-native run-ios --scheme PassCulture-Staging",
"ios:testing": "react-native run-ios --scheme PassCulture-Testing",
"preios": "./scripts/check_xcode_version.sh",
"ios": "react-native run-ios",
"ios:prod": "yarn ios --scheme PassCulture-Production",
"ios:staging": "yarn ios --scheme PassCulture-Staging",
"ios:testing": "yarn ios --scheme PassCulture-Testing",
"postinstall": "patch-package && jetify",
"prepush": "git pull --rebase origin master",
"start": "react-native start",
Expand Down
13 changes: 13 additions & 0 deletions scripts/check_xcode_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail

XCODE_SUPPORTED_VERSION="15.4"
XCODE_CURRENT_VERSION="$(xcodebuild -version)"

if [[ "${XCODE_CURRENT_VERSION}" != *"Xcode ${XCODE_SUPPORTED_VERSION}"* ]]; then
echo "The supported version of XCode in this project is ${XCODE_SUPPORTED_VERSION}"
echo "Your XCode version is :"
echo -e "${XCODE_CURRENT_VERSION}"
echo "The build may not work"
echo "You can install the supported version using https://xcodereleases.com"
fi

0 comments on commit 9cf6488

Please sign in to comment.