测试人社区

真机运行WebDriverAgent提示:未能载入软件包....

环境

  • iPhone 11 IOS13.3.1
  • Xcode 11.3.1(11C504)
  • WebDriverAgent源码:https://github.com/appium/WebDriverAgent.git
  • MacOS 10.15.3 (19D76)

错误日志

WebDriverAgentRunner-Runner.app (558) encountered an error (Failed to load the test bundle. (Underlying error: 未能载入软件包“WebDriverAgentRunner”,因为它已损坏或丢失必要的资源。. 软件包已损坏或丢失必要的资源。. dlopen_preflight(/var/containers/Bundle/Application/CD1A5894-F35D-436A-88AD-5DB27735CF30/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): no suitable image found.  Did find:
	/var/containers/Bundle/Application/CD1A5894-F35D-436A-88AD-5DB27735CF30/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner: code signature invalid for '/var/containers/Bundle/Application/CD1A5894-F35D-436A-88AD-5DB27735CF30/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner'
))

使用模拟器运行没问题,比较奇怪

麻烦同学把问题放到答疑区