WDA问题混总

WDA问题混总文章目录unabletoaccessDB:WebDriverAgentLibcodesign失败WebDriverAgentLibcodesignfailure.unabletoaccessDB:多个xcode线程在跑,杀掉xcode,杀掉xcodebuild进程,cleanWebDriverAgentLibcodesign失败环境:mac10.14.5xcode10.3报错:CommandCodesignfailedwithano

大家好,又见面了,我是你们的朋友全栈君。

  1. unable to access DB:

在这里插入图片描述
多个xcode线程在跑,杀掉xcode, 杀掉xcodebuild进程 , clean

  1. WebDriverAgentLib codesign失败

环境:
mac 10.14.5
xcode 10.3

报错: Command Codesign failed with a nonzero exit code… The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read

在这里插入图片描述
在这里插入图片描述
背景: 更换了provision file, 导致WebdriverAgetnLib codesign失败。而使用xcode IDE 运行是没问题的。

解决: 重启MAC。 猜测, 可能系统有关, xcodebuild命令执行时没有对变动后的描述文件识别,迟钝,未生效。

  1. WebDriverAgentLib codesign failure.

library no loaded.
No suitable image found
在这里插入图片描述
在这里插入图片描述
背景:更改了bundleid和provision file。 xcode IDE 运行WDA正常, xcodebuild 命令行报错。

解决: 对WebDriverAgentLib的info.plist 设置bundleid与WebDriverAgentRunner一致,且 product bundle identifier也一致,不要空着。 code signing identity – Debug – Any ios sdk指定为具体的iphone developer: who (xxxx)

  1. dyld_shared_cache_extract_dylibs failed

第一种方法:

  • 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... no
configure: error: Package requirements (libplist >= 1.11) were not met:

No package 'libplist' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libplist_CFLAGS
and 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.dylib
export libplist_CFLAGS=/usr/local/opt/libplist/lib/libplist-2.0.a

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/158217.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • thinkpad笔记本电脑指示灯图解_thinkpad笔记本关机后,指示灯还亮

    thinkpad笔记本电脑指示灯图解_thinkpad笔记本关机后,指示灯还亮顺序自左向右: 1挂起状态指示灯绿色:计算机处于挂起状态绿色且不断闪烁:计算机正在进入挂起或休眠状态,或者正在从挂起或休眠状态中恢复回来2AC电源状态指示灯绿色:计算机连接到交流电源上3电池状态指示灯绿色:电池电量在80%到100%of之间,以及电量处于20%到80%之间,正在使用中.绿色且不断闪烁:电池电量在20%到80%之间,且正在充电中.橙色:电池电量

    2022年9月16日
    2
  • 电流转电压模块4-20mA转0-3.3/5V/10V/15V转换变送器电路原理解析

    电流转电压模块4-20mA转0-3.3/5V/10V/15V转换变送器电路原理解析工业传感器常使用电流大小来传输数据,那么作为传感器数据的接收方,比如单片机,有内部AD的单片机可以检测电压的大小,那么首先必须将电流信号转换为电压信号,然后进行电压幅值变换使其适合MCU处理的电压范围。下面我们从设计的电流转电压的模块电路原理图来逐步解析。首先我们看电流检测放大部分,就是U1B部分,电流从R1的上端流入,下端流出。不难看出这是一个差分放大电路,也就是一个减…

    2022年5月23日
    71
  • latex 希腊字母表_希腊字母怎么打出来

    latex 希腊字母表_希腊字母怎么打出来Latex希腊字母对照表。

    2022年10月13日
    1
  • Django安装教程_怎样安装ubuntu安装教程

    Django安装教程_怎样安装ubuntu安装教程第二步:安装django这一步由于网络问题可能会出现连接超时报错,只能重试:第三步:测试效果第四步:创建Django项目启动Web服务启动时会提示如下错如:解决办法:再运行就不会报错了。以上显示就是正常运行了,我们可以访问测试一下:返回状态码200表示成功!!!或者通过浏览器访问:参考:https://docs.djangoproject.com/en/4.0/intro/install/上一课1.1Docker安装Django下一课1.3完成一个简单的Demo

    2025年10月4日
    4
  • tf2013_access下载免费中文版

    tf2013_access下载免费中文版
    TFS2010中文版下载 
     
    MicrosoftVisualStudioTeamFoundationServer2010中文版90天试用,可直接加序列号成正式版快速描述MicrosoftVisualStudioTeamFoundationServer2010是一个协作平台,它是Microsoft应用程序生命周期管理解决方案的核心,可帮助团队在整个IT生命周期中降低风险、简化交互过程并杜绝浪费。
    http://www.micros

    2022年9月24日
    3
  • laravel artisan常用命令[通俗易懂]

    laravel artisan常用命令[通俗易懂]laravel artisan常用命令

    2022年4月24日
    44

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号