Skip to content

Commit 9e6e9c6

Browse files
author
greweb
committed
fix: correct applesimutils installation for iOS Detox
- Use brew tap wix/brew for proper applesimutils installation - Fallback to source compilation if brew fails - Fixes 'Not: command not found' error in iOS tests
1 parent d7b176e commit 9e6e9c6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -522,16 +522,17 @@ jobs:
522522

523523
- name: Install applesimutils for iOS Detox
524524
run: |
525-
# Try to install via brew first (might work on GitHub runners)
526-
if brew install applesimutils 2>/dev/null; then
527-
echo "✅ Installed applesimutils via brew"
525+
# Try to install via brew tap first
526+
if brew tap wix/brew && brew install applesimutils 2>/dev/null; then
527+
echo "✅ Installed applesimutils via brew tap"
528528
else
529-
echo "⚠️ Brew install failed, trying manual installation..."
530-
# Download and install pre-compiled binary
531-
curl -L https://github.com/wix/AppleSimulatorUtils/releases/download/0.9.6/applesimutils -o /tmp/applesimutils
532-
chmod +x /tmp/applesimutils
533-
sudo mv /tmp/applesimutils /usr/local/bin/
534-
echo "✅ Installed applesimutils manually"
529+
echo "⚠️ Brew install failed, trying manual compilation..."
530+
# Download source and compile
531+
curl -L https://github.com/wix/AppleSimulatorUtils/archive/0.9.6.tar.gz | tar -xz
532+
cd AppleSimulatorUtils-0.9.6
533+
xcodebuild -project applesimutils.xcodeproj -scheme applesimutils -configuration Release -derivedDataPath ./build clean build
534+
sudo cp ./build/Build/Products/Release/applesimutils /usr/local/bin/
535+
echo "✅ Installed applesimutils via compilation"
535536
fi
536537
537538
- name: Build library

0 commit comments

Comments
 (0)