appium desktop 版本 1.2.7,手机版本:9.3.5,XCode 版本:9.3,系统版本:OS10.13.3。 WDA 是直接从 git 上 clone 下来的,
使用 carthage 获取依赖时,有两个 warn:
npm WARN react-dom@15.6.2 requires a peer of react@15.6.2 but none was installed.
npm WARN web-driver-inspector@1.0.0 No repository field.
打开 WebDriverAgent 后添加了开发者账号(用的是我们公司的 TeamId),然后执行 test,结果是看到手机上确实有个 WebDriverAgent,但是 log 里报错了:
dyld: Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: /var/containers/Bundle/Application/7D3F8872-D3EA-4B2F-B1E8-D819AE8E4B70/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/7D3F8872-D3EA-4B2F-B1E8-D819AE8E4B70/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/7D3F8872-D3EA-4B2F-B1E8-D819AE8E4B70/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
/private/var/containers/Bundle/Application/7D3F8872-D3EA-4B2F-B1E8-D819AE8E4B70/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/7D3F8872-D3EA-4B2F-B1E8-D819AE8E4B70/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'
(lldb)
求大神指导下,或告知下查该类问题方法,新手感激不尽。