Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Scripts/ci/build-sim.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
#!/bin/bash

set -x

# To run build script for CI

xcodebuild clean build-for-testing \
-project WebDriverAgent.xcodeproj \
-derivedDataPath wda_build \
-scheme $SCHEME \
-destination "$DESTINATION" \
CODE_SIGNING_ALLOWED=NO ARCHS=$ARCHS
CODE_SIGNING_ALLOWED=NO ARCHS=$ARCHS &

# CI started starting the next `rm` etc BEFORE ending this xcodebuild, which is weird,
# but to make sure the behavior on ci.
wait

# simulator needs to build entire build files

pushd wda_build
# to remove unnecessary space consuming files
rm -rf Build/Intermediates.noindex

# Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA
rm -rf Build/**/Frameworks/Testing.framework

# This library is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
# Xcode 16 generates a 2.6 MB file size. Xcode 15 was a 1 MB file size.
rm -rf Build/**/Frameworks/libXCTestSwiftSupport.dylib
Comment thread
mykola-mokhnach marked this conversation as resolved.
Outdated

zip -r $ZIP_PKG_NAME Build
popd
mv wda_build/$ZIP_PKG_NAME ./
Loading