appium-desktop 定位元素总是不准,尝试过拉动界面变大变小,但是没用。。。
使用 app-inspector 总是提示 Error: connect ECONNREFUSED 127.0.0.1:8001 at TCPConnectWrap.afterConnect as oncomplete
已进入该路径更换签名和 bundle id,但还是不行。。。
/usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
具体的 log
>> xctest-client.js:224:18 [master] pid:1814 2021-01-22 18:34:21.332 xcodebuild[1817:3355969] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/kid/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/Run-XCTestWDUITests-2021.01.22_18-34-12-+0800.xcresult/Staging/2_Test/Diagnostics/XCTestWDUITests-8A53633C-A2A8-4006-B6E0-21DD08B9A625/XCTestWDUITests-F47C0DB1-0F18-4BAB-B5B0-E8782CF85E15/Session-XCTestWDUITests-2021-01-22_183421-hK0b7O.log
>> xctest-client.js:230:20 [master] pid:1814 hitted for default mode
>> xctest-client.js:222:18 [master] pid:1814 2021-01-22 18:34:21.332 xcodebuild[1817:3355670] [MT] IDETestOperationsObserverDebug: (F1B10A27-F9F4-4E47-8FE3-210433C3B222) Beginning test session XCTestWDUITests-F1B10A27-F9F4-4E47-8FE3-210433C3B222 at 2021-01-22 18:34:21.332 with Xcode 11C505 on target 📱<DVTiOSDevice (0x7fc7e9c98e10), iPad, iPad, 13.6.1 (17G80), ceebd63b0d4ecc925edcc767eeee80d369bbc009> {
deviceSerialNumber: DMPV1EBRHP9X
identifier: ceebd63b0d4ecc925edcc767eeee80d369bbc009
deviceClass: iPad
deviceName: iPad
deviceIdentifier: ceebd63b0d4ecc925edcc767eeee80d369bbc009
productVersion: 13.6.1
buildVersion: 17G80
deviceSoftwareVersion: 13.6.1 (17G80)
deviceArchitecture: arm64
deviceTotalCapacity: 26464542720
deviceAvailableCapacity: 3242647552
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsAct...
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctestwd start with port: 8001
>> proxy.js:55:14 [master] pid:1814 Proxy: /wd/hub/session:POST to http://127.0.0.1:8001/wd/hub/session:POST with body: {"desiredCapabilities":{}}
>> xctest-client.js:270:16 [master] pid:1814 Invalid listen port specified in argument '8001'!
>> xctest-client.js:279:14 [master] pid:1814 iproxy exit with code: 234, signal: null
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:224:18 [master] pid:1814 2021-01-22 18:34:21.481 xcodebuild[1817:3355670] [MT] IDETestOperationsObserverDebug: (F1B10A27-F9F4-4E47-8FE3-210433C3B222) Finished requesting crash reports. Continuing with testing.
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> helper.js:20:18 [master] pid:1814 retrying... (10 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (9 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:222:18 [master] pid:1814 2021-01-22 18:34:25.677 xcodebuild[1817:3355969] iPhoneConnect: 📱<DVTiOSDevice (0x7fc7e9c98e10), iPad, iPad, 13.6.1 (17G80), ceebd63b0d4ecc925edcc767eeee80d369bbc009> installApplicationBundleAtPath:withOptions:andError:withCallback: failed with {
NSLocalizedDescription = "Unable to install \"XCTestWDUITests-Runner\"";
NSUnderlyingError = "Error Domain=com.apple.dtdevicekit Code=-402652994 \"App installation failed\" UserInfo={NSLocalizedFailureReason=This application\U2019s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed., com.apple.dtdevicekit.stacktrace=(\n\t0 DTDeviceKitBase 0x000000011fd326e7 DTDKCreateNSError + 109\n\t1 DTDeviceKitBase 0x000000011fd32de9 DTDK_AMDErrorToNSError + 792\n\t2 DTDeviceKitBase 0x000000011fd7256a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_bl...
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:222:18 [master] pid:1814 2021-01-22 18:34:25.846 xcodebuild[1817:3355731] iPhoneConnect: 📱<DVTiOSDevice (0x7fc7e9c98e10), iPad, iPad, 13.6.1 (17G80), ceebd63b0d4ecc925edcc767eeee80d369bbc009> failed to install /Users/kid/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Build/Products/Debug-iphoneos/XCTestWDUITests-Runner.app - error Error Domain=com.apple.dtdevicekit Code=-402652994 "Unable to install "XCTestWDUITests-Runner"" UserInfo={NSLocalizedDescription=Unable to install "XCTestWDUITests-Runner", NSUnderlyingError=0x7fc7ea563a20 {Error Domain=com.apple.dtdevicekit Code=-402652994 "App installation failed" UserInfo={NSLocalizedFailureReason=This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed., com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x000000011fd326e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x000000011fd32de9 DTDK_A...
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:206:16 [master] pid:1814
*** If you believe this error represents a bug, please attach the result bundle at /Users/kid/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/Run-XCTestWDUITests-2021.01.22_18-34-12-+0800.xcresult
>> xctest-client.js:224:18 [master] pid:1814 2021-01-22 18:34:25.853 xcodebuild[1817:3355670] [MT] IDETestOperationsObserverDebug: 4.528 elapsed -- Testing started completed.
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:222:18 [master] pid:1814 2021-01-22 18:34:25.853 xcodebuild[1817:3355670] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2021-01-22 18:34:25.853 xcodebuild[1817:3355670] [MT] IDETestOperationsObserverDebug: 4.528 sec, +4.528 sec -- end
2021-01-22 18:34:25.853 xcodebuild[1817:3355670] Error Domain=com.apple.dtdevicekit Code=-402652994 "Unable to install "XCTestWDUITests-Runner"" UserInfo={NSLocalizedDescription=Unable to install "XCTestWDUITests-Runner", NSUnderlyingError=0x7fc7ea563a20 {Error Domain=com.apple.dtdevicekit Code=-402652994 "App installation failed" UserInfo={NSLocalizedFailureReason=This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed., com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x000000011fd326e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x000000011fd32de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase ...
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:206:16 [master] pid:1814
Test session results, code coverage, and logs:
/Users/kid/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/Run-XCTestWDUITests-2021.01.22_18-34-12-+0800.xcresult
>> xctest-client.js:224:18 [master] pid:1814 Testing failed:
XCTestWDUITests:
XCTestWDUITests-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to install "XCTestWDUITests-Runner". (Underlying error: App installation failed. This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.)))
** TEST FAILED **
>> xctest-client.js:233:20 [master] pid:1814 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj
>> xctest-client.js:206:16 [master] pid:1814 Testing started on 'iPad'
>> xctest-client.js:329:14 [master] pid:1814 killing runnerProc pid: 1817
>> xctest-client.js:335:14 [master] pid:1814 killing iproxyProc pid: 1995
>> xctest-client.js:245:16 [master] pid:1814 xctest client exit with code: 65, signal: null
>> helper.js:20:18 [master] pid:1814 retrying... (8 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (7 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (6 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (5 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (4 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (3 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (2 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> helper.js:20:18 [master] pid:1814 retrying... (1 retries left)
>> proxy.js:63:22 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
>> xctest-client.js:316:14 [master] pid:1814 Fail to start xctest: Error: connect ECONNREFUSED 127.0.0.1:8001
Error: connect ECONNREFUSED 127.0.0.1:8001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8001
}
>> iOS device started: ceebd63b0d4ecc925edcc767eeee80d369bbc009
>> inspector start at: http://192.168.203.120:5678
<-- GET /
>> helper.js:94:16 [master] pid:1814 xctest client proxy error with: Error: connect ECONNREFUSED 127.0.0.1:8001
Error: connect ECONNREFUSED 127.0.0.1:8001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)