diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/MapboxMaps.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/MapboxMaps.xcscheme index bcf99aa2ce20..a1cb25afc888 100644 --- a/.swiftpm/xcode/xcshareddata/xcschemes/MapboxMaps.xcscheme +++ b/.swiftpm/xcode/xcshareddata/xcschemes/MapboxMaps.xcscheme @@ -10,7 +10,7 @@ ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> + scriptText = "TOKEN_FILE=~/.mapbox TOKEN_FILE_2=~/mapbox TOKEN="$(cat $TOKEN_FILE 2>/dev/null || cat $TOKEN_FILE_2 2>/dev/null)" if [ "$TOKEN" ]; then echo "Build pre-action step using ${TOKEN:0:5}" echo "$WORKSPACE_PATH" if [ $(basename "$WORKSPACE_PATH") = "package.xcworkspace" ]; then MBX_ROOT=$(echo "$WORKSPACE_PATH" | rev | cut -d'/' -f4- | rev) elif [ $(basename "$WORKSPACE_PATH") = "project.xcworkspace" ]; then MBX_ROOT=$(echo "$WORKSPACE_PATH" | rev | cut -d'/' -f5- | rev) else echo "Unknown workspace" exit 1 # Unknown workspace fi echo "$TOKEN" > "$MBX_ROOT/Tests/MapboxMapsTests/Helpers/MapboxAccessToken" else echo "Build pre-action step: Could not find access token" fi ">