Skip to content

Commit d7b176e

Browse files
author
greweb
committed
fix: use brew to install applesimutils for iOS Detox tests
- Try brew install first, fallback to pre-compiled binary - Fixes compilation issues with Xcode 16.4 deployment target - Should resolve iOS Detox test failures in CI
1 parent 3ac03f9 commit d7b176e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,17 @@ jobs:
522522

523523
- name: Install applesimutils for iOS Detox
524524
run: |
525-
# Install applesimutils from GitHub (brew formula doesn't exist)
526-
curl -L https://github.com/wix/AppleSimulatorUtils/releases/download/0.9.6/AppleSimulatorUtils-0.9.6.tar.gz | tar -xz
527-
# Navigate to the applesimutils directory (the project is in ./applesimutils/)
528-
cd applesimutils
529-
# Use the default Xcode path (don't override it)
530-
xcodebuild -project applesimutils.xcodeproj -scheme applesimutils -configuration Release -derivedDataPath ./build clean build
531-
sudo cp ./build/Build/Products/Release/applesimutils /usr/local/bin/
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"
528+
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"
535+
fi
532536
533537
- name: Build library
534538
run: npm run build

0 commit comments

Comments
 (0)