Skip to content

Commit 6d5ea6d

Browse files
Merge pull request #621 from Instabug/fix/upload-soucremap-ios
2 parents acd1a6c + 4697be4 commit 6d5ea6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/upload_sourcemap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ ! "${INSTABUG_APP_TOKEN}" ] || [ -z "${INSTABUG_APP_TOKEN}" ]; then
1818
exit 0
1919
else
2020
if [ ! "${INSTABUG_APP_VERSION_CODE}" ] || [ -z "${INSTABUG_APP_VERSION_CODE}" ]; then
21-
INSTABUG_APP_VERSION_CODE=$( defaults read ${PRODUCT_SETTINGS_PATH} CFBundleVersion )
21+
INSTABUG_APP_VERSION_CODE=$(/usr/libexec/PlistBuddy -c 'print CFBundleVersion' ${PRODUCT_SETTINGS_PATH} )
2222
if [ ! "${INSTABUG_APP_VERSION_CODE}" ] || [ -z "${INSTABUG_APP_VERSION_CODE}" ]; then
2323
echo "CFBundleVersion could not be found, please upload the sourcemap files manually"
2424
exit 0
@@ -33,7 +33,7 @@ else
3333
fi
3434
fi
3535
if [ ! "${INSTABUG_APP_VERSION_NAME}" ] || [ -z "${INSTABUG_APP_VERSION_NAME}" ]; then
36-
INSTABUG_APP_VERSION_NAME=$( defaults read ${PRODUCT_SETTINGS_PATH} CFBundleShortVersionString )
36+
INSTABUG_APP_VERSION_NAME=$(/usr/libexec/PlistBuddy -c 'print CFBundleShortVersionString' ${PRODUCT_SETTINGS_PATH} )
3737
if [ ! "${INSTABUG_APP_VERSION_NAME}" ] || [ -z "${INSTABUG_APP_VERSION_NAME}" ]; then
3838
echo "CFBundleShortVersionString could not be found, please upload the sourcemap files manually"
3939
exit 0

0 commit comments

Comments
 (0)