Skip to content

Commit

Permalink
fix(ios, app): macOS 12.3 removed python, use python3
Browse files Browse the repository at this point in the history
Fixes #6226
Fixes #6203
  • Loading branch information
mikehardy committed May 10, 2022
1 parent f26482d commit 1f609d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/ios_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ if [[ ${_SEARCH_RESULT} ]]; then
_RN_ROOT_EXISTS=$(ruby -e "require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]" || echo '')

if [[ ${_RN_ROOT_EXISTS} ]]; then
_JSON_OUTPUT_BASE64=$(python -c 'import json,sys,base64;print(base64.b64encode(json.dumps(json.loads(open('"'${_SEARCH_RESULT}'"').read())['${_JSON_ROOT}'])))' || echo "e30=")
if ! python3 --version >/dev/null 2>&1; then echo "python3 not found, firebase.json file processing error." && exit 1; fi
_JSON_OUTPUT_BASE64=$(python3 -c 'import json,sys,base64;print(base64.b64encode(bytes(json.dumps(json.loads(open('"'${_SEARCH_RESULT}'"', '"'rb'"').read())['${_JSON_ROOT}']), '"'utf-8'"')).decode())' || echo "e30=")
fi

_PLIST_ENTRY_KEYS+=("firebase_json_raw")
Expand Down

1 comment on commit 1f609d3

@vercel
Copy link

@vercel vercel bot commented on 1f609d3 May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.