WDA问题混总

发布时间:2025-12-09 14:02:21 浏览次数:3

文章目录

    • unable to access DB:
    • WebDriverAgentLib codesign失败
    • WebDriverAgentLib codesign failure.
    • dyld_shared_cache_extract_dylibs failed
    • Could not connect to lockdownd, error code -19
    • 执行./autogen.sh,报错No package ‘libplist’ found
  1. unable to access DB:

  • go to window-devices and simulators

  • select the unrunable device and right click, then choose unpair

  • now this is the crucial part, your device will ask for trust automatically, dont click trust

  • focus back to the device panel, left click the + and add the device, click next, it will ask you to tap the “trust” IN THE PANEL

  • now you can tap the “trust” in your phone, the panel will say phone added successfully

第二种方法:

  • go to ~/Library/Developer/Xcode/iOS DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld

  • create empty file if it is not there – .processed_dyld_shared_cache_arm64e

  • restart xcode and enjoy!

第三种方法:

  • unpair device (like carusd.ljt did), quit xcode

  • delete /Users/{username}/Library/Developer/Xcode/iOS DeviceSupport folder

  • rerun xcode, reconnect iphone, wait for it prepared, run the app.

  1. Could not connect to lockdownd, error code -19

如果只是单个手机连不上,显示该错误。 去到/var/db/lockdown,看下有没有该手机的.plist,没有则从其他连过该手机的Mac电脑该目录下拷贝过来。解决。

如果所有手机都连不上, 卸载升级重装libimobileservice
brew uninstall ideviceinstaller -g
brew uninstall libimobiledevice -g
brew install –HEAD libimobiledevice -g
brew install ideviceinstaller -g
sudo chmod -R 777 /var/db/lockdown

  1. 执行./autogen.sh,报错No package ‘libplist’ found

编译usbmuxd源码,执行 ./autogen.sh 报错

checking for libplist >= 1.11... noconfigure: error: Package requirements (libplist >= 1.11) were not met:No package 'libplist' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables libplist_CFLAGSand libplist_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.

可以在终端输入

export libplist_LIBS=/usr/local/opt/libplist/lib/libplist-2.0.dylibexport libplist_CFLAGS=/usr/local/opt/libplist/lib/libplist-2.0.a

或者在.bash_profile里配置
然后再执行./autogen.sh

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477