build-real.sh 1004 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. xcodebuild clean build-for-testing \
  3. -project WebDriverAgent.xcodeproj \
  4. -derivedDataPath $DERIVED_DATA_PATH \
  5. -scheme $SCHEME \
  6. -destination "$DESTINATION" \
  7. CODE_SIGNING_ALLOWED=NO ARCHS=arm64
  8. pushd $WD
  9. # The reason why here excludes several frameworks are:
  10. # - to remove test packages to refer to the device local instead of embedded ones
  11. # XCTAutomationSupport.framework, XCTest.framewor, XCTestCore.framework,
  12. # XCUIAutomation.framework, XCUnit.framework.
  13. # This can be excluded only for real devices.
  14. # - Xcode 16 started generating 5.9MB of 'Testing.framework', but it might not be necessary for WDA.
  15. # - libXCTestSwiftSupport is used for Swift testing. WDA doesn't include Swift stuff, thus this is not needed.
  16. zip -r $ZIP_PKG_NAME $SCHEME-Runner.app \
  17. -x "$SCHEME-Runner.app/Frameworks/XC*.framework*" \
  18. "$SCHEME-Runner.app/Frameworks/Testing.framework*" \
  19. "$SCHEME-Runner.app/Frameworks/libXCTestSwiftSupport.dylib"
  20. popd
  21. mv $WD/$ZIP_PKG_NAME ./