File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33ARCH=" "
4-
5- if [ " $1 " = " arm" ]; then
4+
5+ if [ $1 = " arm" ]
6+ then
67 ARCH=" arm64"
78else
89 ARCH=" x86_64"
@@ -12,18 +13,9 @@ echo "Building with arch: ${ARCH}"
1213
1314export LC_CTYPE=en_US.UTF-8
1415
15- DEVICE_ID=$( xcrun xctrace list devices 2> /dev/null | grep -m1 " My Mac" | grep " ${ARCH} " | awk -F ' [()]' ' {print $2}' )
16-
17- if [ -z " $DEVICE_ID " ]; then
18- echo " Failed to find device ID for arch ${ARCH} "
19- exit 1
20- fi
21-
22- echo " Using device ID: $DEVICE_ID "
23-
2416set -o pipefail && arch -" ${ARCH} " xcodebuild \
2517 -scheme CodeEditSourceEditor \
2618 -derivedDataPath " .build" \
27- -destination " id= ${DEVICE_ID }" \
19+ -destination " platform=macos,arch= ${ARCH }" \
2820 -skipPackagePluginValidation \
2921 clean test | xcpretty
You can’t perform that action at this time.
0 commit comments