解决MAC Appium设备连不上IOS的的问题
错误的:
[XCUITest] The 'idevice_id' program is not installed. If you are running a real device test it is necessary. Install with 'brew install libimobiledevice --HEAD'
[XCUITest] Available devices:
[XCUITest] Error: Unknown device or simulator UDID: '20a548dc87a87ecddf7ab3975a4b5f3395ac132'
正确的:
[XCUITest] Available devices: 20a548dc87a87ecddf7ab3975a4b5f3395ac132
[XCUITest] Creating iDevice object with udid '20a548dc87a87ecddf7ab3975a4b5f3395ac132'
[XCUITest] Determining device to run tests on: udid: '20a548dc87a87ecddf7ab3975a4b5f3395ac132', real device: true
解决办法:
https://www.jianshu.com/p/1ec36db7d551
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
$ idevice_id -l
20a548dc87a87ecddf7ab3975a4b5f3395ac132
本文详细介绍了如何解决在Mac上使用Appium时无法连接到iOS设备的问题。主要错误在于缺少必要的软件包,解决方案包括更新Homebrew,卸载并重新安装libimobiledevice和usbmuxd,确保设备ID能够被正确识别。

被折叠的 条评论
为什么被折叠?



