Skip to content

Commit 1f609d3

Browse files
committed
fix(ios, app): macOS 12.3 removed python, use python3
Fixes #6226 Fixes #6203
1 parent f26482d commit 1f609d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/ios_config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ if [[ ${_SEARCH_RESULT} ]]; then
7979
_RN_ROOT_EXISTS=$(ruby -e "require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]" || echo '')
8080

8181
if [[ ${_RN_ROOT_EXISTS} ]]; then
82-
_JSON_OUTPUT_BASE64=$(python -c 'import json,sys,base64;print(base64.b64encode(json.dumps(json.loads(open('"'${_SEARCH_RESULT}'"').read())['${_JSON_ROOT}'])))' || echo "e30=")
82+
if ! python3 --version >/dev/null 2>&1; then echo "python3 not found, firebase.json file processing error." && exit 1; fi
83+
_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=")
8384
fi
8485

8586
_PLIST_ENTRY_KEYS+=("firebase_json_raw")

0 commit comments

Comments
 (0)