可以在windows上结合tidevice测试ios吗

可以在windows上结合tidevice使用appcrawler测试ios吗?
windows环境:appium1.22 tidevice0.10.2 appcrawler2.7.4。
我这边尝试了一下,但是报错:

[Appium] Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver]   "alwaysMatch": {
[BaseDriver]     "appium:appium": "http://127.0.0.1:4723/wd/hub",
[BaseDriver]     "platformName": "ios",
[BaseDriver]     "appium:app": "",
[BaseDriver]     "appium:automationName": "XCUITest",
[BaseDriver]     "appium:bundleId": "com.ft.ftchinese.mobile",
[BaseDriver]     "appium:deviceName": "iPhone 8",
[BaseDriver]     "appium:dontStopAppOnReset": "false",
[BaseDriver]     "appium:fullReset": "false",
[BaseDriver]     "appium:newCommandTimeout": 120,
[BaseDriver]     "appium:noReset": true,
[BaseDriver]     "appium:platformVersion": "16.4",
[BaseDriver]     "appium:startIWDP": true,
[BaseDriver]     "appium:udid": "3bf757645ca473392a6ab87117a686108a1a40f7",
[BaseDriver]     "appium:webDriverAgentUrl": "http://localhost:8103"
[BaseDriver]   },
[BaseDriver]   "firstMatch": [
[BaseDriver]     {}
[BaseDriver]   ]
[BaseDriver] }
[BaseDriver] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver]   appium
[BaseDriver]   dontStopAppOnReset
[BaseDriver] Session created with session id: 588a03ce-8273-4282-a0a9-05542aca5325
[XCUITest] Current user: 'desktop-0cmlolj\hhz'
[XCUITest] Available devices: 3bf757645ca473392a6ab87117a686108a1a40f7
[XCUITest] Creating iDevice object with udid '3bf757645ca473392a6ab87117a686108a1a40f7'
[XCUITest] Determining device to run tests on: udid: '3bf757645ca473392a6ab87117a686108a1a40f7', real device: true
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1692103528605 (20:45:28 GMT+0800 (中国标准时间))
[BaseDriver] Event 'appConfigured' logged at 1692103528606 (20:45:28 GMT+0800 (中国标准时间))
[BaseDriver] Event 'resetStarted' logged at 1692103528606 (20:45:28 GMT+0800 (中国标准时间))
[XCUITest] Reset: fullReset not set. Leaving as is
[BaseDriver] Event 'resetComplete' logged at 1692103528606 (20:45:28 GMT+0800 (中国标准时间))
[WebDriverAgent] Using WDA path: 'C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-webdriveragent'
[WebDriverAgent] Using WDA agent: 'C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-webdriveragent\WebDriverAgent.xcodeproj'
[XCUITest] {}
[DevCon Factory] Releasing connections for 3bf757645ca473392a6ab87117a686108a1a40f7 device on any port number
[DevCon Factory] No cached connections have been found
[WebDriverAgent] Cannot retrieve WDA build settings. Original error: Command 'xcodebuild' not found. Is it installed?
[BaseDriver] Event 'newSessionStarted' logged at 1692103528613 (20:45:28 GMT+0800 (中国标准时间))
[W3C] Encountered internal error running command: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[W3C]     at validateString (internal/validators.js:112:11)
[W3C]     at Object.resolve (path.js:139:9)
[W3C]     at new IOSCrashLog (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\device-log\ios-crash-log.js:11:12)
[W3C]     at XCUITestDriver.startLogCapture (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\commands\log.js:36:26)
[W3C]     at startLogCapture (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:361:33)
[W3C]     at XCUITestDriver.start (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:367:39)
[W3C]     at XCUITestDriver.createSession (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:215:7)
[W3C]     at AppiumDriver.createSession (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\lib\appium.js:371:35)
[HTTP] <-- POST /wd/hub/session 500 76 ms - 749```

可以的,这个异常的根本问题是

Windows系统并不存在xcodebuild,所以capabilities里可以添加 ‘useXctestrunFile’:false 进行尝试

谢谢你的回答,但是我加上回答中的字段之后,错误还是和之前一样。

[BaseDriver]   "alwaysMatch": {
[BaseDriver]     "appium:appium": "http://127.0.0.1:4723/wd/hub",
[BaseDriver]     "platformName": "ios",
[BaseDriver]     "appium:useXctestrunFile": false,
[BaseDriver]     "appium:app": "",
[BaseDriver]     "appium:bundleId": "com.ft.ftchinese.mobile",
[BaseDriver]     "appium:deviceName": "iPhone 8",
[BaseDriver]     "appium:dontStopAppOnReset": false,
[BaseDriver]     "appium:fullReset": false,
[BaseDriver]     "appium:newCommandTimeout": 120,
[BaseDriver]     "appium:noReset": true,
[BaseDriver]     "appium:platformVersion": "16.4",
[BaseDriver]     "appium:startIWDP": true,
[BaseDriver]     "appium:udid": "3bf757645ca473392a6ab87117a686108a1a40f7",
[BaseDriver]     "appium:webDriverAgentUrl": "http://localhost:8103"
[BaseDriver]   },
[BaseDriver]   "firstMatch": [
[BaseDriver]     {}
[BaseDriver]   ]
[BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver]   appium
[BaseDriver]   dontStopAppOnReset
[BaseDriver] Session created with session id: 69b7a9c1-67cd-431e-bf3d-c7de1b3bbd5e
[XCUITest] Current user: 'desktop-0cmlolj\hhz'
[XCUITest] Available devices: 3bf757645ca473392a6ab87117a686108a1a40f7
[XCUITest] Creating iDevice object with udid '3bf757645ca473392a6ab87117a686108a1a40f7'
[XCUITest] Determining device to run tests on: udid: '3bf757645ca473392a6ab87117a686108a1a40f7', real device: true
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1692343865437 (15:31:05 GMT+0800 (中国标准时间))
[BaseDriver] Event 'appConfigured' logged at 1692343865437 (15:31:05 GMT+0800 (中国标准时间))
[BaseDriver] Event 'resetStarted' logged at 1692343865438 (15:31:05 GMT+0800 (中国标准时间))
[XCUITest] Reset: fullReset not set. Leaving as is
[BaseDriver] Event 'resetComplete' logged at 1692343865438 (15:31:05 GMT+0800 (中国标准时间))
[WebDriverAgent] Using WDA path: 'C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-webdriveragent'
[WebDriverAgent] Using WDA agent: 'C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-webdriveragent\WebDriverAgent.xcodeproj'
[XCUITest] {}
[DevCon Factory] Releasing connections for 3bf757645ca473392a6ab87117a686108a1a40f7 device on any port number
[DevCon Factory] No cached connections have been found
[WebDriverAgent] Cannot retrieve WDA build settings. Original error: Command 'xcodebuild' not found. Is it installed?
[BaseDriver] Event 'newSessionStarted' logged at 1692343865445 (15:31:05 GMT+0800 (中国标准时间))
[W3C] Encountered internal error running command: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[W3C]     at validateString (internal/validators.js:112:11)
[W3C]     at Object.resolve (path.js:139:9)
[W3C]     at new IOSCrashLog (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\device-log\ios-crash-log.js:11:12)
[W3C]     at XCUITestDriver.startLogCapture (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\commands\log.js:36:26)
[W3C]     at startLogCapture (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:361:33)
[W3C]     at XCUITestDriver.start (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:367:39)
[W3C]     at XCUITestDriver.createSession (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:215:7)
[W3C]     at AppiumDriver.createSession (C:\Users\hhz\AppData\Local\Programs\Appium\resources\app\node_modules\appium\lib\appium.js:371:35)
[HTTP] <-- POST /wd/hub/session 500 87 ms - 749```

翻了一下去年写得代码,给你做一下参考
Appium是1.22.2版本
tidevice是0.6.4版本

当初公司立项要做windows+iphone真机自动化测试,我做调查和demo,是可以运行的

对不起,我的问题有误,windows+tidevice+wda我也是可以测试的,但是我想利用tidevice把appcrawler这个项目用起来,但是就报了上面的错误。