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


相关推荐

  • Java的封装方法

    Java的封装方法在面向对象程式设计方法中,封装(英文名称:Encapsulation)是指一种将抽象性函式接口的实现细节部份包装、隐藏起来的方法。封装可以被认为是一个保护屏障,防止该类的代码和数据被外部类定义的代码随机访问。要访问该类的代码和数据,必须通过严格的接口控制。适当的封装可以让程式码更容易理解与维护,也加强了程式码的安全性,这个就是Java封装方法。下面是封装方法的示例代码:publicclass…

    2022年7月8日
    26
  • Java多线程系列—线程通信机制wait notify notifyAll(03)

    Java多线程系列—线程通信机制wait notify notifyAll(03)线程通信机制waitnotifynotifyAll本课时我们主要学习wait/notify/notifyAll方法的使用注意事项。我们主要从三个问题入手:为什么wait方法必须在synchronized保护的同步代码中使用?为什么wait/notify/notifyAll被定义在Object类中,而sleep定义在Thread类中?wait/notify和sleep方法的异同?wait必须在synchronized保护的同步代码中使用为什么wai

    2022年9月8日
    0
  • lte band41频率范围_lte频点和频段对照表

    lte band41频率范围_lte频点和频段对照表4GLTE各band对应的频率一览表在调试过程中,有时对band具体的频率不清楚,这里记录一下:

    2022年9月28日
    0
  • C++中set用法详解

    C++中set用法详解1.关于setC++STL之所以得到广泛的赞誉,也被很多人使用,不只是提供了像vector,string,list等方便的容器,更重要的是STL封装了许多复杂的数据结构算法和大量常用数据结构操作。vector封装数组,list封装了链表,map和set封装了二叉树等,在封装这些数据结构的时候,STL按照程序员的使用习惯,以成员函数方式提供的常用操作,如:插入、排序、删除、查找等。让用户…

    2022年5月11日
    42
  • pycharm永久激活码2021_最新在线免费激活

    (pycharm永久激活码2021)好多小伙伴总是说激活码老是失效,太麻烦,关注/收藏全栈君太难教程,2021永久激活的方法等着你。https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~S32PGH0SQB-eyJsaWNlbnNlSWQiOi…

    2022年3月26日
    55
  • fiori教程_英语入门自学方法

    fiori教程_英语入门自学方法DecouplingthelifecycleoftheUIappsfromthebackend,especiallyfortheappsthatmustalsorunonanyDB.a.AllowfasteriterationsfortheUIappsb.AllowchangestoUIbyLOBwithoutthen…

    2022年10月22日
    0

发表回复

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

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