Skip to content

Commit fedbd6a

Browse files
committed
fix: use -destination instead of -sdk in scripts/build-for-testing.sh
1 parent 6f5afc3 commit fedbd6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build-for-testing.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ flags+=( -scheme "$SCHEME" )
9393

9494
# Set derivedDataPath
9595
DERIVEDDATAPATH="build-for-testing/${SCHEME}"
96-
flags+=( -sdk "iphoneos" -derivedDataPath "$DERIVEDDATAPATH")
96+
flags+=( -destination "generic/platform=iOS" -derivedDataPath "$DERIVEDDATAPATH")
9797

9898
# Add extra flags
9999
if [[ "$SAMPLE" == Config ]];then
@@ -120,7 +120,7 @@ function xcb() {
120120
}
121121

122122
# Run xcodebuild
123-
sudo xcode-select -p
123+
xcode-select -p
124124
xcb "${flags[@]}"
125125
echo "$message"
126126

0 commit comments

Comments
 (0)