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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Landsat-8 介绍[通俗易懂]

    Landsat-8 介绍[通俗易懂]Landsat-8于2013年2月11日发射升空,目前仍在运行。它始于Landsat数据连续性任务。现在,我们将其简称为Landsat-8。Landsat-8在与太阳同步的近极轨道上绕地球旋转,高度为705公里(438英里),倾斜角为98.2度,每99分钟完成一次地球轨道。卫星的重复周期为16天,赤道穿越时间为:上午10:00+/-15分钟。Landsat-8每天收集550个场景。因此,到2020年8月,它将收集到总计150万个场景。这颗主力卫星仍然是面向公众的开源土地信息的主要内容。…

    2022年7月23日
  • 计算机的发展历史和发展趋势_对未来计算机展望

    计算机的发展历史和发展趋势_对未来计算机展望论计算机发展史及展望(3页)本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!9.9积分论计算机发展史及展望杨露斯黎炼四川大学,成都双流610207摘要:自从1945年世界上第一台电子计算机诞生以来,计算机技术迅猛发展,CPU的速度越来越快,体积越来越小,价格越来越低。未来光子、一轮趨级计算技术革命。关键词:计算机;发展史;前景展望中图分类号:G4文…

    2022年10月19日
  • Django之ORM模型建议收藏

    ORM介绍对象关系映射(ObjectRelationalMapping,简称ORM)模式的作用是在关系型数据库与业务实体对象之间进行映射,这使得我们不需要再去和复杂的SQL语句打交道,只需要简单

    2021年12月19日
  • WinExec 函数「建议收藏」

    WinExec 函数「建议收藏」从程序里面,调用另一个程序。或者系统自带程序,例子如下:CStringstrcmd=”Explorer/e,”+strDeCodePath; WinExec(strcmd,SW_SHOW);

    2022年7月11日
  • 应用程序发生异常0xc0000095_0xc0000142

    应用程序发生异常0xc0000095_0xc0000142Hi,Imadeanexewhichisforsystemtray,thisexetogetsystemeventnotificationas(logoff&Shutdown)..itsworkingfinefor1-2hoursbutafterthatthisexeisgoingtocrashIamunable…

    2022年9月28日
  • springboot框架的理解_谈谈你对springmvc的理解

    springboot框架的理解_谈谈你对springmvc的理解1.起源SpringBoot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。用我的话来理解,就是SpringBoot其实不是什么新的框架,它默认配置了很多框架的使用方式,就像Maven整合了所有的Jar包,SpringBoot整合了所有的框…

    2022年8月20日

发表回复

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

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