Closed ozgurkaya-mobven closed 7 months ago
Please attach the full appium log with appium:showXcodeLog
appium capability.
The log is as follows.
Command line invocation:
2023-12-08 09:09:34:740 - [Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw -destination id=00008120-000919880107C01E IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
2023-12-08 09:09:34:740 - [Xcode]
2023-12-08 09:09:34:740 - [Xcode] User defaults from command line:
2023-12-08 09:09:34:740 - [Xcode] IDEDerivedDataPathOverride = /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw
2023-12-08 09:09:34:740 - [Xcode] IDEPackageSupportUseBuiltinSCM = YES
2023-12-08 09:09:34:740 - [Xcode]
2023-12-08 09:09:34:740 - [Xcode] Build settings from command line:
2023-12-08 09:09:34:740 - [Xcode] COMPILER_INDEX_STORE_ENABLE = NO
2023-12-08 09:09:34:740 - [Xcode] GCC_TREAT_WARNINGS_AS_ERRORS = 0
2023-12-08 09:09:34:740 - [Xcode] IPHONEOS_DEPLOYMENT_TARGET = 17.0
2023-12-08 09:09:34:740 - [Xcode]
2023-12-08 09:09:34:740 - [Xcode]
2023-12-08 09:09:34:740 - [debug] [XCUITestDriver@8530 (cf214a06)] Waiting up to 60000ms for WebDriverAgent to start
2023-12-08 09:09:34:740 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:34:740 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:34:744 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:34:744 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:35:007 - [Xcode] Prepare packages
2023-12-08 09:09:35:007 - [Xcode]
2023-12-08 09:09:35:007 - [Xcode]
2023-12-08 09:09:35:007 - [Xcode]
2023-12-08 09:09:35:151 - [Xcode] ComputeTargetDependencyGraph
2023-12-08 09:09:35:151 - [Xcode]
2023-12-08 09:09:35:171 - [Xcode] note: Building targets in dependency order
2023-12-08 09:09:35:171 - [Xcode]
2023-12-08 09:09:35:171 - [Xcode] note: Target dependency graph (2 targets)
2023-12-08 09:09:35:171 - [Xcode] Target 'WebDriverAgentRunner' in project 'WebDriverAgent'
2023-12-08 09:09:35:171 - [Xcode] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent'
2023-12-08 09:09:35:171 - [Xcode] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies)
2023-12-08 09:09:35:171 - [Xcode]
2023-12-08 09:09:35:172 - [Xcode]
2023-12-08 09:09:35:172 - [Xcode]
2023-12-08 09:09:35:172 - [Xcode] GatherProvisioningInputs
2023-12-08 09:09:35:173 - [Xcode]
2023-12-08 09:09:35:182 - [Xcode]
2023-12-08 09:09:35:182 - [Xcode]
2023-12-08 09:09:35:186 - [Xcode] CreateBuildDescription
2023-12-08 09:09:35:186 - [Xcode]
2023-12-08 09:09:35:223 - [Xcode]
2023-12-08 09:09:35:223 - [Xcode]
2023-12-08 09:09:35:223 - [Xcode] /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
2023-12-08 09:09:35:223 - [Xcode]
2023-12-08 09:09:35:228 - [Xcode] 2023-12-08 12:09:35.227 xcodebuild[79657:10355276] Writing error result bundle to /var/folders/p6/jstxtsfn0pz3s0fnhhks0np40000gp/T/ResultBundle_2023-08-12_12-09-0035.xcresult
2023-12-08 09:09:35:228 - [Xcode]
2023-12-08 09:09:35:745 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:35:745 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:35:750 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:35:751 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:36:351 - [Xcode] xcodebuild: error: Failed writing xctestrun file: The folder “WebDriverAgentRunner_iphoneos17.0-arm64.xctestrun” doesn’t exist..
2023-12-08 09:09:36:351 - [Xcode]
2023-12-08 09:09:36:355 - [Xcode] xcodebuild exited with code '70' and signal 'null'
2023-12-08 09:09:36:356 - [XCUITestDriver@8530 (cf214a06)] Launching WebDriverAgent on the device
2023-12-08 09:09:36:356 - [XCUITestDriver@8530 (cf214a06)] There is no need to perform the project cleanup. A fresh install has been detected
2023-12-08 09:09:36:356 - [debug] [WebDriverAgent] Killing running processes 'xcodebuild.00008120-000919880107C01E' for the device 00008120-000919880107C01E...
2023-12-08 09:09:36:369 - [debug] [WebDriverAgent] 'pgrep -if xcodebuild.00008120-000919880107C01E' didn't detect any matching processes. Return code: 1
2023-12-08 09:09:36:369 - [debug] [XCUITestDriver@8530 (cf214a06)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw -destination id=00008120-000919880107C01E IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
2023-12-08 09:09:36:369 - [debug] [XCUITestDriver@8530 (cf214a06)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
2023-12-08 09:09:36:752 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:36:753 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:36:756 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:36:756 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:36:787 - [Xcode] Command line invocation:
2023-12-08 09:09:36:787 - [Xcode]
2023-12-08 09:09:36:787 - [debug] [XCUITestDriver@8530 (cf214a06)] Waiting up to 60000ms for WebDriverAgent to start
2023-12-08 09:09:36:787 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:36:787 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:36:788 - [Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw -destination id=00008120-000919880107C01E IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
2023-12-08 09:09:36:788 - [Xcode]
2023-12-08 09:09:36:788 - [Xcode] User defaults from command line:
2023-12-08 09:09:36:788 - [Xcode] IDEDerivedDataPathOverride = /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw
2023-12-08 09:09:36:788 - [Xcode] IDEPackageSupportUseBuiltinSCM = YES
2023-12-08 09:09:36:788 - [Xcode]
2023-12-08 09:09:36:789 - [Xcode] Build settings from command line:
2023-12-08 09:09:36:789 - [Xcode] COMPILER_INDEX_STORE_ENABLE = NO
2023-12-08 09:09:36:789 - [Xcode] GCC_TREAT_WARNINGS_AS_ERRORS = 0
2023-12-08 09:09:36:789 - [Xcode] IPHONEOS_DEPLOYMENT_TARGET = 17.0
2023-12-08 09:09:36:789 - [Xcode]
2023-12-08 09:09:36:789 - [Xcode]
2023-12-08 09:09:36:792 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:36:793 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:37:061 - [Xcode] Prepare packages
2023-12-08 09:09:37:061 - [Xcode]
2023-12-08 09:09:37:062 - [Xcode]
2023-12-08 09:09:37:062 - [Xcode]
2023-12-08 09:09:37:197 - [Xcode] ComputeTargetDependencyGraph
2023-12-08 09:09:37:197 - [Xcode]
2023-12-08 09:09:37:216 - [Xcode] note: Building targets in dependency order
2023-12-08 09:09:37:216 - [Xcode]
2023-12-08 09:09:37:217 - [Xcode] note: Target dependency graph (2 targets)
2023-12-08 09:09:37:217 - [Xcode] Target 'WebDriverAgentRunner' in project 'WebDriverAgent'
2023-12-08 09:09:37:217 - [Xcode] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent'
2023-12-08 09:09:37:217 - [Xcode] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies)
2023-12-08 09:09:37:217 - [Xcode]
2023-12-08 09:09:37:218 - [Xcode]
2023-12-08 09:09:37:218 - [Xcode]
2023-12-08 09:09:37:218 - [Xcode] GatherProvisioningInputs
2023-12-08 09:09:37:218 - [Xcode]
2023-12-08 09:09:37:225 - [Xcode]
2023-12-08 09:09:37:225 - [Xcode]
2023-12-08 09:09:37:229 - [Xcode] CreateBuildDescription
2023-12-08 09:09:37:229 - [Xcode]
2023-12-08 09:09:37:256 - [Xcode]
2023-12-08 09:09:37:257 - [Xcode]
2023-12-08 09:09:37:259 - [Xcode] /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
2023-12-08 09:09:37:259 - [Xcode]
2023-12-08 09:09:37:263 - [Xcode] 2023-12-08 12:09:37.262 xcodebuild[79669:10355342] Writing error result bundle to /var/folders/p6/jstxtsfn0pz3s0fnhhks0np40000gp/T/ResultBundle_2023-08-12_12-09-0037.xcresult
2023-12-08 09:09:37:263 - [Xcode]
2023-12-08 09:09:37:449 - [debug] [AndroidDriver] Established a new logcat listener web socket connection from 10.10.1.1
2023-12-08 09:09:37:757 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:37:757 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:37:762 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:37:762 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:37:793 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:37:794 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:37:798 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:37:798 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:38:390 - [Xcode] xcodebuild: error: Failed writing xctestrun file: The folder “WebDriverAgentRunner_iphoneos17.0-arm64.xctestrun” doesn’t exist..
2023-12-08 09:09:38:390 - [Xcode]
2023-12-08 09:09:38:394 - [Xcode] xcodebuild exited with code '70' and signal 'null'
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Event 'wdaStartFailed' logged at 1702026578395 (12:09:38 GMT+0300 (GMT+03:00))
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] xcodebuild error message:
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Command line invocation:
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)]
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw -destination id=00008120-000919880107C01E IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] User defaults from command line:
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] IDEDerivedDataPathOverride = /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] IDEPackageSupportUseBuiltinSCM = YES
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Build settings from command line:
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] COMPILER_INDEX_STORE_ENABLE = NO
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] GCC_TREAT_WARNINGS_AS_ERRORS = 0
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] IPHONEOS_DEPLOYMENT_TARGET = 17.0
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Prepare packages
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] ComputeTargetDependencyGraph
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] note: Building targets in dependency order
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] note: Target dependency graph (2 targets)
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Target 'WebDriverAgentRunner' in project 'WebDriverAgent'
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent'
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies)
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] GatherProvisioningInputs
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] CreateBuildDescription
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] 2023-12-08 12:09:37.262 xcodebuild[79669:10355342] Writing error result bundle to /var/folders/p6/jstxtsfn0pz3s0fnhhks0np40000gp/T/ResultBundle_2023-08-12_12-09-0037.xcresult
2023-12-08 09:09:38:395 - [debug] [XCUITestDriver@8530 (cf214a06)] xcodebuild: error: Failed writing xctestrun file: The folder “WebDriverAgentRunner_iphoneos17.0-arm64.xctestrun” doesn’t exist... Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
2023-12-08 09:09:38:395 - [XCUITestDriver@8530 (cf214a06)] Quitting and uninstalling WebDriverAgent
2023-12-08 09:09:38:395 - [XCUITestDriver@8530 (cf214a06)] Shutting down sub-processes
2023-12-08 09:09:38:608 - [debug] [XCUITestDriver@8530 (cf214a06)] Uninstalling WDAs: 'com.facebook.WebDriverAgentRunner.xctrunner'
2023-12-08 09:09:38:762 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:38:762 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:38:766 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:38:767 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:38:798 - [debug] [XCUITestDriver@8530 (cf214a06)] Matched '/status' to command name 'getStatus'
2023-12-08 09:09:38:798 - [debug] [XCUITestDriver@8530 (cf214a06)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2023-12-08 09:09:38:803 - [debug] [iProxy@00008120:8100] Connection was refused to port 8100
2023-12-08 09:09:38:804 - [XCUITestDriver@8530 (cf214a06)] socket hang up
2023-12-08 09:09:38:873 - [XCUITestDriver@8530 (cf214a06)] {}
2023-12-08 09:09:38:874 - [DevCon Factory] Releasing connections for 00008120-000919880107C01E device on any port number
2023-12-08 09:09:38:874 - [DevCon Factory] Found cached connections to release: ["00008120-000919880107C01E:8100"]
2023-12-08 09:09:38:874 - [DevCon Factory] Releasing the listener for '00008120-000919880107C01E:8100'
2023-12-08 09:09:38:874 - [debug] [iProxy@00008120:8100] Closing the connection
2023-12-08 09:09:38:874 - [debug] [DevCon Factory] Cached connections count: 0
2023-12-08 09:09:38:874 - [debug] [XCUITestDriver@8530 (cf214a06)] Not clearing log files. Use clearSystemFiles
capability to turn on.
2023-12-08 09:09:38:874 - [FlutterDriver@4660 (7b85237b)] Deleting Flutter Driver session
2023-12-08 09:09:38:874 - [FlutterDriver@4660 (7b85237b)] Cleanup the port forward
2023-12-08 09:09:38:874 - [AppiumDriver@4349] Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["relaxed-caps"].
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] xcodebuild error message:
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Command line invocation:
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349]
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw -destination id=00008120-000919880107C01E IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] User defaults from command line:
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] IDEDerivedDataPathOverride = /Users/mobven/Library/Developer/Xcode/DerivedData/WebDriverAgent-fhefzhxjejxrpthbjtlmfrejfnaw
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] IDEPackageSupportUseBuiltinSCM = YES
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Build settings from command line:
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] COMPILER_INDEX_STORE_ENABLE = NO
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] GCC_TREAT_WARNINGS_AS_ERRORS = 0
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] IPHONEOS_DEPLOYMENT_TARGET = 17.0
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Prepare packages
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] ComputeTargetDependencyGraph
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] note: Building targets in dependency order
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] note: Target dependency graph (2 targets)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Target 'WebDriverAgentRunner' in project 'WebDriverAgent'
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent'
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] GatherProvisioningInputs
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] CreateBuildDescription
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] 2023-12-08 12:09:37.262 xcodebuild[79669:10355342] Writing error result bundle to /var/folders/p6/jstxtsfn0pz3s0fnhhks0np40000gp/T/ResultBundle_2023-08-12_12-09-0037.xcresult
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] xcodebuild: error: Failed writing xctestrun file: The folder “WebDriverAgentRunner_iphoneos17.0-arm64.xctestrun” doesn’t exist... Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at quitAndUninstall (/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:794:15)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:880:13
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at wrapped (/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at retry (/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at retryInterval (/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
2023-12-08 09:09:38:888 - [debug] [AppiumDriver@4349] at /Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:819:7
2023-12-08 09:09:38:889 - [iProxy@00008120:8100] The connection has been closed
2023-12-08 09:09:38:889 - [HTTP] <-- POST /wd/hub/session 500 7384 ms - 5212
2023-12-08 09:09:38:889 - [HTTP]
I started webdriveragentRunner from the folder specified in the error log, installed the certificate, and when I wanted to run the test again, the error message changed.
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Cannot determine the Dart Observatory URL after 10 retries. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_-.[]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup.
It usually means the app under test did not print any observatory URL.
https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#usage-and-requirement
Was the app under test built with profile
mode?
showIOSLog
caps would help to check if the system log prints the observatory URL
I am sharing the first 1000 lines appium with device log , because its trying the same things forever .
2023-12-11 08:00:48:160 - [AppiumDriver@dd0b] Plugins which can handle cmd 'createSession': relaxed-caps
2023-12-11 08:00:48:160 - [AppiumDriver@dd0b] Plugin relaxed-caps is now handling cmd 'createSession'
2023-12-11 08:00:48:163 - [Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'IOS'
2023-12-11 08:00:48:163 - [Appium] The 'flutter' driver was installed and matched caps.
2023-12-11 08:00:48:163 - [Appium] Will require it at /Users/mobven/node_modules/appium-flutter-driver
2023-12-11 08:00:48:163 - [debug] [Appium] Requiring driver at /Users/mobven/node_modules/appium-flutter-driver
2023-12-11 08:00:48:164 - [AppiumDriver@dd0b] Appium v2.0.1 creating new FlutterDriver (v2.2.4) session
2023-12-11 08:00:48:164 - [AppiumDriver@dd0b] Checking BaseDriver versions for Appium and FlutterDriver
2023-12-11 08:00:48:164 - [AppiumDriver@dd0b] Appium's BaseDriver version is 9.3.20
2023-12-11 08:00:48:164 - [AppiumDriver@dd0b] FlutterDriver's BaseDriver version is 9.3.20
2023-12-11 08:00:48:164 - [debug] [AppiumDriver@dd0b] There are no active sessions for cleanup
2023-12-11 08:00:48:165 - [AppiumDriver@dd0b] Applying relaxed security to 'FlutterDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
2023-12-11 08:00:48:166 - [debug] [FlutterDriver@43bd] Creating session with W3C capabilities: {
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "alwaysMatch": {
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "platformName": "IOS",
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:automationName": "Flutter",
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:app": "myApp.ipa",
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:udid": "device_udid",
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:deviceName": "",
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:autoGrantPermissions": true,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:autoDissmissAlerts": true,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:autoAcceptAlerts": true,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:showIOSLog": true,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:includeSafariInWebviews": true,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:newCommandTimeout": 3600,
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "appium:connectHardwareKeyboard": true
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] },
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] "firstMatch": [
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] {}
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] ]
2023-12-11 08:00:48:167 - [debug] [FlutterDriver@43bd] }
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] The following capabilities were provided, but are not recognized by Appium:
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] momentum:options
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] deviceName
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] autoGrantPermissions
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] autoDissmissAlerts
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] autoAcceptAlerts
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] showIOSLog
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] includeSafariInWebviews
2023-12-11 08:00:48:172 - [FlutterDriver@43bd] connectHardwareKeyboard
2023-12-11 08:00:48:172 - [FlutterDriver@43bd (94097a14)] Session created with session id: 94097a14-8693-4508-8503-09151f252c39
2023-12-11 08:00:48:173 - [FlutterDriver] Starting an IOS proxy session
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] Creating session with W3C capabilities: {
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "alwaysMatch": {
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "platformName": "IOS",
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:automationName": "Flutter",
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:app": "myApp.ipa",
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:udid": "device_udid",
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:deviceName": "",
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:autoGrantPermissions": true,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:autoDissmissAlerts": true,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:autoAcceptAlerts": true,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:showIOSLog": true,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:includeSafariInWebviews": true,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:newCommandTimeout": 3600,
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "appium:connectHardwareKeyboard": true
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] },
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] "firstMatch": [
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] {}
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] ]
2023-12-11 08:00:48:175 - [debug] [XCUITestDriver@eed9] }
2023-12-11 08:00:48:178 - [XCUITestDriver@eed9] The following capabilities were provided, but are not recognized by Appium:
2023-12-11 08:00:48:178 - [XCUITestDriver@eed9] momentum:options
2023-12-11 08:00:48:178 - [XCUITestDriver@eed9] autoGrantPermissions
2023-12-11 08:00:48:179 - [XCUITestDriver@eed9] autoDissmissAlerts
2023-12-11 08:00:48:179 - [XCUITestDriver@eed9] 'platformVersion' capability ('undefined') is not a valid version number. Consider fixing it or be ready to experience an inconsistent driver behavior.
2023-12-11 08:00:48:179 - [XCUITestDriver@eed9 (8b9f9d15)] Session created with session id: 8b9f9d15-9f61-4b2c-809c-210c77f6ada9
2023-12-11 08:00:48:188 - [debug] [XCUITest] Current user: 'mobven'
2023-12-11 08:00:48:197 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Available devices: ....
2023-12-11 08:00:48:197 - [debug] [XCUITest] Creating iDevice object with udid '...'
2023-12-11 08:00:48:197 - [XCUITestDriver@eed9 (8b9f9d15)] Determining device to run tests on: udid: '...', real device: true
2023-12-11 08:00:48:256 - [XCUITestDriver@eed9 (8b9f9d15)] No platformVersion specified. Using device version: '17.0'
2023-12-11 08:00:48:276 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Event 'xcodeDetailsRetrieved' logged at 1702281648276 (11:00:48 GMT+0300 (GMT+03:00))
2023-12-11 08:00:48:277 - [BaseDriver] Using downloadable app '...'
2023-12-11 08:00:48:595 - [debug] [BaseDriver] Etag: "1da269953e97bf3"
2023-12-11 08:00:48:596 - [debug] [BaseDriver] Last-Modified: Mon, 04 Dec 2023 10:04:53 GMT
2023-12-11 08:00:48:596 - [debug] [BaseDriver] Cache-Control: undefined
2023-12-11 08:00:48:598 - [debug] [BaseDriver] Content-Type: application/octet-stream
2023-12-11 08:00:53:231 - [debug] [BaseDriver] The application (10.03 MB) has been downloaded to '/tmp/tmpPhone15/20231111-2766-js84nj.qiaj/e302f2c3-4b00-4c61-9db6-71996a1d9df8-app.ipa' in 4.632s
2023-12-11 08:00:53:232 - [debug] [BaseDriver] Approximate download speed: 2.16 MB/s
2023-12-11 08:00:53:259 - [debug] [Support] Found 'unzip' at '/usr/bin/unzip'
2023-12-11 08:00:53:478 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Found 1 bundle in 'e302f2c3-4b00-4c61-9db6-71996a1d9df8-app.ipa': Payload/Runner.app
2023-12-11 08:00:53:479 - [XCUITestDriver@eed9 (8b9f9d15)] 'Payload/Runner.app' is the resulting application bundle selected from '/tmp/tmpPhone15/20231111-2766-js84nj.qiaj/e302f2c3-4b00-4c61-9db6-71996a1d9df8-app.ipa'
2023-12-11 08:00:53:481 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Event 'appConfigured' logged at 1702281653481 (11:00:53 GMT+0300 (GMT+03:00))
2023-12-11 08:00:53:482 - [debug] [XCUITest] Checking whether app '/tmp/tmpPhone15/20231111-2766-1rbebxx.8m64/Runner.app' is actually present on file system
2023-12-11 08:00:53:482 - [debug] [XCUITest] App is present
2023-12-11 08:00:53:482 - [debug] [XCUITest] Getting bundle ID from app '/tmp/tmpPhone15/20231111-2766-1rbebxx.8m64/Runner.app': 'com.myApp'
2023-12-11 08:00:53:482 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Event 'resetStarted' logged at 1702281653482 (11:00:53 GMT+0300 (GMT+03:00))
2023-12-11 08:00:53:482 - [debug] [XCUITest] Reset: running ios real device reset flow
2023-12-11 08:00:53:482 - [debug] [XCUITestDriver@eed9 (8b9f9d15)] Event 'resetComplete' logged at 1702281653482 (11:00:53 GMT+0300 (GMT+03:00))
2023-12-11 08:00:53:482 - [XCUITestDriver@eed9 (8b9f9d15)] Using WDA path: '/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
2023-12-11 08:00:53:482 - [XCUITestDriver@eed9 (8b9f9d15)] Using WDA agent: '/Users/mobven/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
2023-12-11 08:00:53:596 - [debug] [XCUITest] Executing /opt/homebrew/bin/pyidevice crash list --udid ... --network --format json
2023-12-11 08:00:53:864 - [IOSDeviceLog] Dec 11 11:00:53 iPhone-14-pro-max backboardd(ColourSensorFilterPlugin)[66]
Hi to all,
I am running on a real iOS device and it's working with automationName: XCUITest setting. When I want to change this to automationName: Flutter it's getting an error. "Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 70"
What should be the problem, Am I missing something?
{ "appium:automationName": "XCUITest", "appium:app": "",
"appium:udid": "",
"appium:deviceName": "",
"appium:autoAcceptAlerts": true,
"appium:autoDissmissAlerts": true,
"platformName": "iOS",
}
Test framework: WebdriverIO (typescript) latest MacOS: Sonoma 14.0 Xcode 15.0 NodeJS v20.8.0 Appium server: 2.0.1 ✔ Listing available drivers
The target device is iPhone 14 pro max - iOS 17 (Apple developer signed provisioning profile for WebDriverAgentRunner). I also tried with the iPhone 8, 12 pro and much more phones, same result.