Skip to content

Commit c348c2e

Browse files
committed
fix: Use a more robust bundle identifier detection in ios run script
Sometimes the bundleId is not identified and the app isn't starting. `mdls` returns null. `plutil` seems to be a much better option
1 parent df4c233 commit c348c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/scripts/ios/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -euo pipefail
88

99
CWD=$(realpath "$(dirname "$0")")
1010
APP=${APP:-"$CWD/../../bin/Applications/Status-tablet.app"} # Path to the .app bundle
11-
APPID=${APPID:-$(mdls -name kMDItemCFBundleIdentifier -raw "$APP")} # Bundle identifier of the app
11+
APPID=${APPID:-$(plutil -extract CFBundleIdentifier raw "$APP/Info.plist")} # Bundle identifier of the app
1212
SIMULATOR_UDID=${SIMULATOR_UDID:-""} # Specify to skip interactive selection
1313
IPHONE_SDK=${IPHONE_SDK:-iphonesimulator} # Default to simulator if not set
1414
DEVICE_ID=${DEVICE_ID:-""} # For physical device selection

0 commit comments

Comments
 (0)