Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
29 changes: 10 additions & 19 deletions Scripts/ci/build-real.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
#!/bin/bash

# To run build script for CI

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

# Only .app is needed.

pushd $WD

# # to remove test packages to refer to the device local instead of embedded ones
# # XCTAutomationSupport.framework, XCTest.framewor, XCTestCore.framework,
# # XCUIAutomation.framework, XCUnit.framework
# rm -rf $SCHEME-Runner.app/Frameworks/XC*.framework \
# # Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA
# $SCHEME-Runner.app/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.
# $SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib

# The reason why here excludes several frameworks are:
# - to remove test packages to refer to the device local instead of embedded ones
# XCTAutomationSupport.framework, XCTest.framewor, XCTestCore.framework,
# XCUIAutomation.framework, XCUnit.framework.
# This can be excluded only for real devices.
# - Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA.
# - libXCTestSwiftSupport is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
zip -r $ZIP_PKG_NAME $SCHEME-Runner.app \
-x $SCHEME-Runner.app/Frameworks/XC*.framework \
$SCHEME-Runner.app/Frameworks/XC*.framework/* \
$SCHEME-Runner.app/Frameworks/Testing.framework \
$SCHEME-Runner.app/Frameworks/Testing.framework/* \
$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib
-x "$SCHEME-Runner.app/Frameworks/XC*.framework*" \
"$SCHEME-Runner.app/Frameworks/Testing.framework*" \
"$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib"
popd
mv $WD/$ZIP_PKG_NAME ./
12 changes: 5 additions & 7 deletions Scripts/ci/build-sim.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

set -x
Comment thread
mykola-mokhnach marked this conversation as resolved.
Outdated

# To run build script for CI

xcodebuild clean build-for-testing \
-project WebDriverAgent.xcodeproj \
-derivedDataPath $DERIVED_DATA_PATH \
Expand All @@ -13,9 +9,11 @@ xcodebuild clean build-for-testing \

pushd $WD
Comment thread
mykola-mokhnach marked this conversation as resolved.

# The reason why here excludes several frameworks are:
# - Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA.
# - libXCTestSwiftSupport is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
zip -r $ZIP_PKG_NAME $SCHEME-Runner.app \
-x $SCHEME-Runner.app/Frameworks/Testing.framework \
$SCHEME-Runner.app/Frameworks/Testing.framework/* \
$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib
-x "$SCHEME-Runner.app/Frameworks/Testing.framework*" \
"$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib"
popd
mv $WD/$ZIP_PKG_NAME ./