Skip to content

Instantly share code, notes, and snippets.

@rohanp-91
Created February 28, 2024 19:14
Show Gist options
  • Save rohanp-91/7f6698a54648ed9ed60c32807da16302 to your computer and use it in GitHub Desktop.
Save rohanp-91/7f6698a54648ed9ed60c32807da16302 to your computer and use it in GitHub Desktop.
Appium Simulator Issue - Taking too long to boot
2024-02-28T07:34:19.7051010Z info Appium Discovered installed driver "uiautomator2"
2024-02-28T07:34:19.7079180Z info Appium Discovered installed driver "xcuitest"
2024-02-28T07:34:22.1286970Z 2024-02-28 07:34:22:127 - [35m[Appium][39m Welcome to Appium v2.0.0-beta.58 (REV 724eb752d73635cb968552a5c04ab48e6094f4f1)
2024-02-28T07:34:22.1321760Z 2024-02-28 07:34:22:131 - [35m[Appium][39m Non-default server args:
2024-02-28T07:34:22.1350420Z 2024-02-28 07:34:22:134 - [35m[Appium][39m { logTimestamp: [33mtrue[39m }
2024-02-28T07:34:22.1359500Z 2024-02-28 07:34:22:135 - [35m[Appium][39m Attempting to load driver uiautomator2...
2024-02-28T07:34:22.1380260Z 2024-02-28 07:34:22:137 - [debug] [35m[Appium][39m Requiring driver at /Users/runner/work/1/s/node_modules/appium-uiautomator2-driver
2024-02-28T07:34:22.5307030Z 2024-02-28 07:34:22:529 - [35m[Appium][39m Attempting to load driver xcuitest...
2024-02-28T07:34:22.5311170Z 2024-02-28 07:34:22:530 - [debug] [35m[Appium][39m Requiring driver at /Users/runner/work/1/s/node_modules/appium-xcuitest-driver
2024-02-28T07:34:23.6610230Z 2024-02-28 07:34:23:660 - [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2024-02-28T07:34:23.6612040Z 2024-02-28 07:34:23:660 - [Appium] Available drivers:
2024-02-28T07:34:23.6618680Z 2024-02-28 07:34:23:661 - [Appium] - uiautomator2@2.12.7 (automationName 'UiAutomator2')
2024-02-28T07:34:23.6620100Z 2024-02-28 07:34:23:661 - [Appium] - xcuitest@4.21.1 (automationName 'XCUITest')
2024-02-28T07:34:23.6624680Z 2024-02-28 07:34:23:662 - [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
2024-02-28T07:34:39.1686920Z
2024-02-28T07:34:39.2234620Z 2024-02-28 07:34:39:222 - [HTTP] POST /session
2024-02-28T07:34:39.2237060Z 2024-02-28 07:34:39:223 - [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"iOS","wd:allowW3C":true,"appium:options":{"automationName":"XCUITest","platformVersion":"17.2","app":"/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app","appPackage":"com.company.CompanyAppMobile-DF","fullReset":false,"showIOSLog":false,"showXcodeLog":false,"language":"en","allowTouchIdEnroll":true,"processArguments":{"args":["-dynamicPilot","9999999","clearusercontext"],"env":{}},"wdaLaunchTimeout":240000,"wdaConnectionTimeout":30000,"wdaStartupRetryInterval":10000,"wdaStartupRetries":1,"simulatorStartupTimeout":240000,"deviceName":"iPhone15ProSimulator","udid":"DE4F46E5-425E-4658-956C-6A40D85B7058","appiumPort":4723},"browserName":"firefox","wd:version":"","wd:javascriptEnabled":true,"wd:platform":"ANY"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","allowW3C":true,"appium:options":{"automationName":"XCUITest","platformVersion":"17.2","app":"/Users/runner/runner...
2024-02-28T07:34:39.2251480Z 2024-02-28 07:34:39:224 - [debug] [AppiumDriver@da31] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","allowW3C":true,"appium:options":{"automationName":"XCUITest","platformVersion":"17.2","app":"/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app","appPackage":"com.company.CompanyAppMobile-DF","fullReset":false,"showIOSLog":false,"showXcodeLog":false,"language":"en","allowTouchIdEnroll":true,"processArguments":{"args":["-dynamicPilot","9999999","clearusercontext"],"env":{}},"wdaLaunchTimeout":240000,"wdaConnectionTimeout":30000,"wdaStartupRetryInterval":10000,"wdaStartupRetries":1,"simulatorStartupTimeout":240000,"deviceName":"iPhone15ProSimulator","udid":"DE4F46E5-425E-4658-956C-6A40D85B7058","appiumPort":4723},"browserName":"firefox","version":"","javascriptEnabled":true,"platform":"ANY"},null,{"alwaysMatch":{"platformName":"iOS","wd:allowW3C":true,"appium:options":{"automationName":"XCUITest","platformVersion":"17.2","app":"/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/b...
2024-02-28T07:34:39.2261940Z 2024-02-28 07:34:39:225 - [debug] [AppiumDriver@da31] Event 'newSessionRequested' logged at 1709105679225 (07:34:39 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:34:39.2273650Z 2024-02-28 07:34:39:227 - [debug] [BaseDriver] Found appium:options capability present; will promote items inside to caps
2024-02-28T07:34:39.2302130Z 2024-02-28 07:34:39:229 - [Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
2024-02-28T07:34:39.2303230Z 2024-02-28 07:34:39:230 - [Appium] The 'xcuitest' driver was installed and matched caps.
2024-02-28T07:34:39.2304000Z 2024-02-28 07:34:39:230 - [Appium] Will require it at /Users/runner/work/1/s/node_modules/appium-xcuitest-driver
2024-02-28T07:34:39.2306130Z 2024-02-28 07:34:39:230 - [debug] [Appium] Requiring driver at /Users/runner/work/1/s/node_modules/appium-xcuitest-driver
2024-02-28T07:34:39.2307340Z 2024-02-28 07:34:39:230 - [AppiumDriver@da31] Appium v2.0.0-beta.58 creating new XCUITestDriver (v4.21.1) session
2024-02-28T07:34:39.2307910Z 2024-02-28 07:34:39:230 - [AppiumDriver@da31] Checking BaseDriver versions for Appium and XCUITestDriver
2024-02-28T07:34:39.2309450Z 2024-02-28 07:34:39:230 - [AppiumDriver@da31] Appium's BaseDriver version is 9.3.4
2024-02-28T07:34:39.2311630Z 2024-02-28 07:34:39:230 - [AppiumDriver@da31] XCUITestDriver's BaseDriver version is 9.3.4
2024-02-28T07:34:39.2344840Z 2024-02-28 07:34:39:233 - [debug] [XCUITestDriver@3aec] Creating session with W3C capabilities: {
2024-02-28T07:34:39.2345640Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "alwaysMatch": {
2024-02-28T07:34:39.2346110Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "platformName": "iOS",
2024-02-28T07:34:39.2346540Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "wd:allowW3C": true,
2024-02-28T07:34:39.2347280Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "browserName": "firefox",
2024-02-28T07:34:39.2348100Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "wd:version": "",
2024-02-28T07:34:39.2349200Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "wd:javascriptEnabled": true,
2024-02-28T07:34:39.2349980Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "wd:platform": "ANY",
2024-02-28T07:34:39.2350930Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:automationName": "XCUITest",
2024-02-28T07:34:39.2352220Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:platformVersion": "17.2",
2024-02-28T07:34:39.2353950Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:app": "/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app",
2024-02-28T07:34:39.2355220Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:appPackage": "com.company.CompanyAppMobile-DF",
2024-02-28T07:34:39.2356070Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:fullReset": false,
2024-02-28T07:34:39.2356790Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:showIOSLog": false,
2024-02-28T07:34:39.2357840Z 2024-02-28 07:34:39:234 - [debug] [XCUITestDriver@3aec] "appium:showXcodeLog": false,
2024-02-28T07:34:39.2358560Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:language": "en",
2024-02-28T07:34:39.2359340Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:allowTouchIdEnroll": true,
2024-02-28T07:34:39.2360070Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:processArguments": {
2024-02-28T07:34:39.2360760Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "args": [
2024-02-28T07:34:39.2361370Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "-dynamicPilot",
2024-02-28T07:34:39.2362030Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "9999999",
2024-02-28T07:34:39.2362650Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "clearusercontext"
2024-02-28T07:34:39.2363240Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] ],
2024-02-28T07:34:39.2364170Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "env": {}
2024-02-28T07:34:39.2365110Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] },
2024-02-28T07:34:39.2365790Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:wdaLaunchTimeout": 240000,
2024-02-28T07:34:39.2366840Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:wdaConnectionTimeout": 30000,
2024-02-28T07:34:39.2367860Z 2024-02-28 07:34:39:235 - [debug] [XCUITestDriver@3aec] "appium:wdaStartupRetryInterval": 10000,
2024-02-28T07:34:39.2382100Z 2024-02-28 07:34:39:237 - [debug] [XCUITestDriver@3aec] "appium:wdaStartupRetries": 1,
2024-02-28T07:34:39.2383370Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] "appium:simulatorStartupTimeout": 240000,
2024-02-28T07:34:39.2384850Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] "appium:deviceName": "iPhone15ProSimulator",
2024-02-28T07:34:39.2386100Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] "appium:udid": "DE4F46E5-425E-4658-956C-6A40D85B7058",
2024-02-28T07:34:39.2387210Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] "appium:appiumPort": 4723
2024-02-28T07:34:39.2387680Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] },
2024-02-28T07:34:39.2388560Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] "firstMatch": [
2024-02-28T07:34:39.2389190Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] {}
2024-02-28T07:34:39.2389740Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] ]
2024-02-28T07:34:39.2390350Z 2024-02-28 07:34:39:238 - [debug] [XCUITestDriver@3aec] }
2024-02-28T07:34:39.2465030Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] The following capabilities were provided, but are not recognized by Appium:
2024-02-28T07:34:39.2466700Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] wd:allowW3C
2024-02-28T07:34:39.2467360Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] wd:version
2024-02-28T07:34:39.2469120Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] wd:javascriptEnabled
2024-02-28T07:34:39.2469760Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] wd:platform
2024-02-28T07:34:39.2470750Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] appPackage
2024-02-28T07:34:39.2471370Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] allowTouchIdEnroll
2024-02-28T07:34:39.2472290Z 2024-02-28 07:34:39:246 - [XCUITestDriver@3aec] appiumPort
2024-02-28T07:34:39.2481970Z 2024-02-28 07:34:39:247 - [XCUITestDriver@3aec] The capabilities should generally not include both an 'app' and a 'browserName'
2024-02-28T07:34:39.2488370Z 2024-02-28 07:34:39:248 - [XCUITestDriver@3aec (a16879bc)] Session created with session id: a16879bc-a99e-421d-825b-aafc744a9ed0
2024-02-28T07:34:39.2718760Z 2024-02-28 07:34:39:271 - [debug] [XCUITest] Current user: 'runner'
2024-02-28T07:34:39.2877410Z 2024-02-28 07:34:39:287 - [debug] [XCUITestDriver@3aec (a16879bc)] Available devices:
2024-02-28T07:34:39.2878720Z 2024-02-28 07:34:39:287 - [debug] [XCUITestDriver@3aec (a16879bc)] No real device with udid 'DE4F46E5-425E-4658-956C-6A40D85B7058'. Looking for simulator
2024-02-28T07:34:39.5825650Z 2024-02-28 07:34:39:581 - [iOSSim] Constructing iOS simulator for Xcode version 15.2 with udid 'DE4F46E5-425E-4658-956C-6A40D85B7058'
2024-02-28T07:34:39.5832710Z 2024-02-28 07:34:39:582 - [XCUITestDriver@3aec (a16879bc)] Determining device to run tests on: udid: 'DE4F46E5-425E-4658-956C-6A40D85B7058', real device: false
2024-02-28T07:34:39.5864400Z 2024-02-28 07:34:39:585 - [debug] [XCUITestDriver@3aec (a16879bc)] Event 'xcodeDetailsRetrieved' logged at 1709105679585 (07:34:39 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:34:39.5882600Z 2024-02-28 07:34:39:587 - [BaseDriver] Using local app '/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app'
2024-02-28T07:34:39.5899620Z 2024-02-28 07:34:39:589 - [debug] [XCUITestDriver@3aec (a16879bc)] Event 'appConfigured' logged at 1709105679589 (07:34:39 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:34:39.5901410Z 2024-02-28 07:34:39:589 - [debug] [XCUITest] Checking whether app '/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app' is actually present on file system
2024-02-28T07:34:39.5903760Z 2024-02-28 07:34:39:589 - [debug] [XCUITest] App is present
2024-02-28T07:34:39.5921810Z 2024-02-28 07:34:39:591 - [debug] [XCUITest] Getting bundle ID from app '/Users/runner/runners/3.234.0/CompanyAppMobile/ios/output/iphonesimulator/Dogfood/build.sym/Dogfood-iphonesimulator/CompanyAppMobile.app': 'com.company.CompanyAppMobile-DF'
2024-02-28T07:34:39.5923020Z 2024-02-28 07:34:39:591 - [debug] [XCUITestDriver@3aec (a16879bc)] Event 'resetStarted' logged at 1709105679591 (07:34:39 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:34:39.8017710Z 2024-02-28 07:34:39:801 - [debug] [simctl] Error running 'terminate': An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
2024-02-28T07:34:39.8018350Z Unable to lookup in current state: Shutdown
2024-02-28T07:34:39.8018810Z 2024-02-28 07:34:39:801 - [XCUITest] Reset: failed to terminate Simulator application with id "com.company.CompanyAppMobile-DF"
2024-02-28T07:34:39.8019360Z 2024-02-28 07:34:39:801 - [XCUITest] Not scrubbing third party app in anticipation of uninstall
2024-02-28T07:34:39.8020010Z 2024-02-28 07:34:39:801 - [debug] [XCUITestDriver@3aec (a16879bc)] Event 'resetComplete' logged at 1709105679801 (07:34:39 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:34:39.8029550Z 2024-02-28 07:34:39:802 - [XCUITestDriver@3aec (a16879bc)] Using WDA path: '/Users/runner/work/1/s/node_modules/appium-webdriveragent'
2024-02-28T07:34:39.8031090Z 2024-02-28 07:34:39:802 - [XCUITestDriver@3aec (a16879bc)] Using WDA agent: '/Users/runner/work/1/s/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
2024-02-28T07:34:40.0298040Z 2024-02-28 07:34:40:029 - [XCUITest] Continuing without capturing device logs: iOS Simulator with udid 'DE4F46E5-425E-4658-956C-6A40D85B7058' is not running
2024-02-28T07:34:40.0303980Z 2024-02-28 07:34:40:029 - [XCUITestDriver@3aec (a16879bc)] Setting up simulator
2024-02-28T07:34:40.0336800Z 2024-02-28 07:34:40:030 - [debug] [iOSSim] Setting preferences of DE4F46E5-425E-4658-956C-6A40D85B7058 Simulator to {"ConnectHardwareKeyboard":false}
2024-02-28T07:34:40.0338850Z 2024-02-28 07:34:40:030 - [debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false}
2024-02-28T07:34:40.6095030Z 2024-02-28 07:34:40:608 - [debug] [iOSSim] Updated DE4F46E5-425E-4658-956C-6A40D85B7058 Simulator preferences at '/Users/runner/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"DE4F46E5-425E-4658-956C-6A40D85B7058":{"ConnectHardwareKeyboard":false}}}
2024-02-28T07:34:40.9500110Z 2024-02-28 07:34:40:949 - [iOSSim] Starting Simulator UI: open -Fn /Applications/Xcode_15.2.app/Contents/Developer/Applications/Simulator.app
2024-02-28T07:35:12.3794210Z 2024-02-28 07:35:12:376 - [debug] [XCUITestDriver@3aec (a16879bc)] Parsed BUILD_DIR configuration value: '/Users/runner/Library/Developer/Xcode/DerivedData/WebDriverAgent-fzbxwlgxiislmldzexvfloacrrlj/Build/Products'
2024-02-28T07:35:12.4792220Z 2024-02-28 07:35:12:377 - [debug] [XCUITestDriver@3aec (a16879bc)] Got derived data root: '/Users/runner/Library/Developer/Xcode/DerivedData/WebDriverAgent-fzbxwlgxiislmldzexvfloacrrlj'
2024-02-28T07:38:44.7664900Z 2024-02-28 07:38:44:755 - [XCUITestDriver@3aec (a16879bc)] {}
2024-02-28T07:38:44.8714710Z 2024-02-28 07:38:44:769 - [DevCon Factory] Releasing connections for DE4F46E5-425E-4658-956C-6A40D85B7058 device on any port number
2024-02-28T07:38:45.0241870Z 2024-02-28 07:38:44:770 - [DevCon Factory] No cached connections have been found
2024-02-28T07:38:45.0243340Z 2024-02-28 07:38:44:770 - [debug] [XCUITestDriver@3aec (a16879bc)] Not clearing log files. Use `clearSystemFiles` capability to turn on.
2024-02-28T07:38:45.0245160Z 2024-02-28 07:38:44:797 - [debug] [AppiumDriver@da31] Event 'newSessionStarted' logged at 1709105924795 (07:38:44 GMT+0000 (Coordinated Universal Time))
2024-02-28T07:38:45.0246750Z 2024-02-28 07:38:45:008 - [debug] [AppiumDriver@da31] Encountered internal error running command: Error: The simulator DE4F46E5-425E-4658-956C-6A40D85B7058 has failed to finish booting after 240s. Original status: Monitoring boot status for iPhone 15 Pro (DE4F46E5-425E-4658-956C-6A40D85B7058).
2024-02-28T07:38:45.0247670Z 2024-02-28 07:38:45:009 - [debug] [AppiumDriver@da31] [2024-02-28 07:35:26 +0000] Status=1, isTerminal=NO, Elapsed=00:42.
2024-02-28T07:38:45.0249000Z 2024-02-28 07:38:45:009 - [debug] [AppiumDriver@da31] Waiting on BackBoard
2024-02-28T07:38:45.0250180Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31]
2024-02-28T07:38:45.0250960Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31] [2024-02-28 07:37:53 +0000] Status=2, isTerminal=NO, Elapsed=03:06.
2024-02-28T07:38:45.0251540Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31] Waiting on Data Migration
2024-02-28T07:38:45.0253200Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31] Reason:Running plugin com.apple.addressbook.migrator (AddressBookLegacy.migrator)
2024-02-28T07:38:45.0253800Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31] Migration Elapsed:00:00 seconds
2024-02-28T07:38:45.0254260Z 2024-02-28 07:38:45:010 - [debug] [AppiumDriver@da31]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment