@@ -171,13 +171,22 @@ jobs:
171171 xcrun simctl boot "iPhone 16" || true
172172 xcrun simctl bootstatus "iPhone 16" -b
173173
174+ # Wait for simulator to be fully ready
175+ sleep 10
176+
174177 # Install the app
175178 xcrun simctl install "iPhone 16" e2e-app/bitkit.app
179+
180+ # Verify app installation
181+ xcrun simctl listapps "iPhone 16" | grep -i bitkit || echo "App not found in simulator"
182+
183+ # Check simulator status
184+ xcrun simctl list devices | grep "iPhone 16"
176185
177186 - name : Start Appium Server
178187 run : |
179- # Start Appium server in background
180- appium --port 4723 --log-level info &
188+ # Start Appium server in background with more verbose logging
189+ appium --port 4723 --log-level debug --relaxed-security &
181190 APPIUM_PID=$!
182191 echo "APPIUM_PID=$APPIUM_PID" >> $GITHUB_ENV
183192
@@ -197,6 +206,10 @@ jobs:
197206 echo "Appium failed to start after 60 seconds"
198207 exit 1
199208 fi
209+
210+ # Test Appium with a simple request
211+ echo "Testing Appium connection..."
212+ curl -s http://localhost:4723/status | head -20
200213
201214 - name : Run E2E Tests (${{ matrix.shard.name }})
202215 run : |
@@ -224,6 +237,10 @@ jobs:
224237 # Remove the appium service to prevent WebDriverIO from starting its own server
225238 sed -i '' 's/services: \[.appium.\]/services: []/' wdio.conf.ts
226239
240+ # Increase timeout settings for better reliability
241+ sed -i '' 's/connectionRetryTimeout: [0-9]*/connectionRetryTimeout: 300000/' wdio.conf.ts
242+ sed -i '' 's/waitforTimeout: [0-9]*/waitforTimeout: 60000/' wdio.conf.ts
243+
227244 # Pass everything through to WDIO/Mocha
228245 npm run e2e:ios -- "$@"
229246 env :
0 commit comments