Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove test frameworks in Frameworks and add device local references as rpath for real devices #780

Merged
merged 10 commits into from
Sep 25, 2023
16 changes: 14 additions & 2 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macos-13

env:
XCODE_VERSION: 14.3.1
XCODE_VERSION: 15.0
ZIP_PKG_NAME_IOS: "WebDriverAgentRunner-Runner.zip"
PKG_PATH_IOS: "appium_wda_ios"
ZIP_PKG_NAME_TVOS: "WebDriverAgentRunner_tvOS-Runner.zip"
Expand Down Expand Up @@ -44,9 +44,15 @@ jobs:
-scheme WebDriverAgentRunner \
-destination generic/platform=iOS \
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS after removing test frameworks
run: |
pushd appium_wda_ios/Build/Products/Debug-iphoneos
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCTAutomationSupport.framework
KazuCocoa marked this conversation as resolved.
Show resolved Hide resolved
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCTestCore.framework
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCTestSupport.framework
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCUIAutomation.framework
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XCUnit.framework
zip -r $ZIP_PKG_NAME_IOS WebDriverAgentRunner-Runner.app
popd
mv $PKG_PATH_IOS/Build/Products/Debug-iphoneos/$ZIP_PKG_NAME_IOS ./
Expand All @@ -61,6 +67,12 @@ jobs:
- name: Creating a zip of WebDriverAgentRunner-Runner.app for tvOS
run: |
pushd appium_wda_tvos/Build/Products/Debug-appletvos
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCTAutomationSupport.framework
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCTest.framework
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCTestCore.framework
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCTestSupport.framework
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCUIAutomation.framework
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XCUnit.framework
zip -r $ZIP_PKG_NAME_TVOS WebDriverAgentRunner_tvOS-Runner.app
popd
mv $PKG_PATH_TVOS/Build/Products/Debug-appletvos/$ZIP_PKG_NAME_TVOS ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
HOST: macos-13
XCODE_VERSION: 14.3.1
XCODE_VERSION: 15.0
DESTINATION_SIM: platform=iOS Simulator,name=iPhone 14 Pro
DESTINATION_SIM_tvOS: platform=tvOS Simulator,name=Apple TV

Expand Down
9 changes: 9 additions & 0 deletions Scripts/ci/build-real.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ xcodebuild clean build-for-testing \
# Only .app is needed.

pushd $WD

# to remove test packages to refer to the device local instead of embedded ones
rm -rf $SCHEME-Runner.app/Frameworks/XCTAutomationSupport.framework
rm -rf $SCHEME-Runner.app/Frameworks/XCTest.framework
rm -rf $SCHEME-Runner.app/Frameworks/XCTestCore.framework
rm -rf $SCHEME-Runner.app/Frameworks/XCTestSupport.framework
rm -rf $SCHEME-Runner.app/Frameworks/XCUIAutomation.framework
rm -rf $SCHEME-Runner.app/Frameworks/XCUnit.framework

zip -r $ZIP_PKG_NAME $SCHEME-Runner.app
popd
mv $WD/$ZIP_PKG_NAME ./
Loading