-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen_wda_in_xcode.sh
More file actions
executable file
·29 lines (23 loc) · 1.11 KB
/
open_wda_in_xcode.sh
File metadata and controls
executable file
·29 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Script to locate and open Appium WebDriverAgent Xcode project for manual configuration
# Try common Homebrew and npm global install locations
WDA_PATH=""
# Search for WebDriverAgent in Homebrew location
if [ -d "/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent" ]; then
WDA_PATH="/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent"
fi
# Search for WebDriverAgent in /usr/local location
if [ -z "$WDA_PATH" ] && [ -d "/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent" ]; then
WDA_PATH="/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent"
fi
# If not found, try to find it dynamically
if [ -z "$WDA_PATH" ]; then
WDA_PATH=$(find /opt/homebrew/lib /usr/local/lib -type d -name appium-webdriveragent 2>/dev/null | head -1)
fi
if [ -z "$WDA_PATH" ]; then
echo "❌ WebDriverAgent directory not found. Please check your Appium installation."
exit 1
fi
# Open the Xcode project
open "$WDA_PATH/WebDriverAgent.xcodeproj"
echo "✅ Opened WebDriverAgent.xcodeproj in Xcode. Please follow manual steps for signing and building."