之前已经折腾了:
- PC桌面端
- Selenium
- 【已解决】Mac中用Selenium自动操作浏览器实现百度搜索
- puppeteer
- 【已解决】Mac中用puppeteer自动操作浏览器实现百度搜索
- Playwright
- 【已解决】Mac中用playwright自动操作浏览器实现百度搜索
- 移动端
- 安卓的uiautomator2
- 【已解决】Mac中用uiautomator2自动操作安卓手机浏览器实现百度搜索
现在去弄:
- iOS的facebook-wda
先去Mac中安装facebook-wda环境:
【已解决】Mac中安装和初始化facebook-wda环境
继续去写代码:
【已解决】Mac中用weditor辅助调试iOS设备
然后可以继续调试了。
其中:
【未解决】Mac中XCode编译报错:The operation couldn’t be completed. Unable to log in with account account rejected
总之:公司Mac中,苹果开发者账号,过期了。
导致XCode无法正常登录和继续测试了。
而自己Mac中,之前是可以调试的。
如果此处也同时导致自己Mac中XCode(或xcodebuild)无法继续编译该项目,导致无法继续测试。
就郁闷了。
回到自己Mac,去试试:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | xcodebuild - project WebDriverAgent.xcodeproj - scheme WebDriverAgentRunner - destination "id=`idevice_id -l | head -n1`" test Command line invocation: / Applications / Xcode.app / Contents / Developer / usr / bin / xcodebuild - project WebDriverAgent.xcodeproj - scheme WebDriverAgentRunner - destination id = 3dc13714e21415898e8e2c2863d96990a4d69c97 test note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description error: Signing certificate is invalid. Signing certificate "Apple Development: xxx (UBFSP2P5PM)" , serial number "<DVTSigningCertificateSerialNumber: 0x7fc4c756db00>" , is not valid for code signing. It may have been revoked or expired. ( in target 'WebDriverAgentLib' from project 'WebDriverAgent' ) error: Signing certificate is invalid. Signing certificate "Apple Development: xxx (UBFSP2P5PM)" , serial number "<DVTSigningCertificateSerialNumber: 0x7fc4c756db00>" , is not valid for code signing. It may have been revoked or expired. ( in target 'WebDriverAgentRunner' from project 'WebDriverAgent' ) Test session results, code coverage, and logs: / Users / crifan / Library / Developer / Xcode / DerivedData / WebDriverAgent - fkggltbnspxitwcqkcogpefhhvai / Logs / Test / Test - WebDriverAgentRunner - 2021.04 . 13_21 - 02 - 33 - + 0800.xcresult Testing failed: Signing certificate is invalid. Signing certificate "Apple Development: xxx (UBFSP2P5PM)" , serial number "<DVTSigningCertificateSerialNumber: 0x7fc4c756db00>" , is not valid for code signing. It may have been revoked or expired. Testing cancelled because the build failed. * * TEST FAILED * * ✘ crifan@licrifandeMacBook - Pro ~ / dev / dev_root / python / baiduSearchAutomation / code / facebook - wda / WebDriverAgent master ● |
很明显,问题依旧

所以,只能抽空去
给苹果开发者 续费,然后才能继续
还真是郁闷了。。。
另外去试了试XCode
1 2 | Unable to install "WebDriverAgentRunner-Runner" The certificate used to sign "WebDriverAgentRunner-Runner" has either expired or has been revoked. An updated certificate is required to sign and install the application. |

证书过期了。
无法继续了。
点击Details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | Details Unable to install "WebDriverAgentRunner-Runner" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620392 Recovery Suggestion: The certificate used to sign "WebDriverAgentRunner-Runner" has either expired or has been revoked. An updated certificate is required to sign and install the application. -- The identity used to sign the executable is no longer valid. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620392 User Info: { DVTRadarComponentKey = 487925; MobileDeviceErrorCode = "(0xE8008018)" ; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000011d4bcc8f DTDKCreateNSErrorFromAMDErrorCode + 220 1 DTDeviceKitBase 0x000000011d4fb241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2 DVTFoundation 0x0000000101ba464b DVTInvokeWithStrongOwnership + 71 3 DTDeviceKitBase 0x000000011d4faf82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 4 IDEiOSSupportCore 0x000000011d36ba10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513 5 DVTFoundation 0x0000000101cd317e __DVT_CALLING_CLIENT_BLOCK__ + 7 6 DVTFoundation 0x0000000101cd4da0 __DVTDispatchAsync_block_invoke + 1191 7 libdispatch.dylib 0x00007fff6db306c4 _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fff6db31658 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fff6db36c44 _dispatch_lane_serial_drain + 597 10 libdispatch.dylib 0x00007fff6db375d6 _dispatch_lane_invoke + 363 11 libdispatch.dylib 0x00007fff6db40c09 _dispatch_workloop_worker_thread + 596 12 libsystem_pthread.dylib 0x00007fff6dd8ba3d _pthread_wqthread + 290 13 libsystem_pthread.dylib 0x00007fff6dd8ab77 start_wqthread + 15 ); } -- System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.4 (17801) (Build 12D4e) Timestamp: 2021-04-13T21:17:10+08:00 |

暂时放弃。
以后有空续费后,再继续。