问答 关于 xcode 8.1 搭建 WebDriverAgent 编译失败的问题

sdfeasdfg · 2018年01月13日 · 最后由 sdfeasdfg 回复于 2018年01月24日 · 1984 次阅读

安装教程参考:https://testerhome.com/topics/7861
安装 carthage 的时候提示要 xcode 9.0,就到网上下来安装。
执行./Scripts/bootstrap.sh 的时候有几个问题:
-e Fetching dependencies
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** xcodebuild output can be found in /var/folders/gb/gw7fmfds57q04bzynvy7h9xm0000gr/T/carthage-xcodebuild.mLXL4u.log
-e Building Inspector
Creating bundle directory...
Fetching Inspector dependencies...
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated css-list@0.1.3: Deprecated.

fsevents@1.1.3 install /Users/amy/WebDriverAgent/Inspector/node_modules/fsevents
node install
[fsevents] Success: "/Users/amy/WebDriverAgent/Inspector/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-dom@15.6.2 requires a peer of react@15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN web-driver-inspector@1.0.0 No repository field.
added 682 packages in 24.284s
Validating Inspector
Launching Flow server for /Users/amy/WebDriverAgent/Inspector
Spawned flow server (pid=79176)
Logs will go to /private/tmp/flow/zSUserszSamyzSWebDriverAgentzSInspector.log
No errors!
Building Inspector...
web-driver-inspector@1.0.0 build /Users/amy/WebDriverAgent/Inspector
webpack --progress --colors
Hash: 8cac1428c00de3caad87
Version: webpack 1.15.0
Time: 3253ms
Asset Size Chunks Chunk Names
inspector.js 859 kB 0 [emitted] main
[0] multi main 28 bytes {0} [built]

  • 226 hidden modules Done

点运行的时候:
/Users/amy/WebDriverAgent/WebDriverAgentLib/Routing/FBSession.m:77:10: Implicit conversion from nullable pointer 'FBApplication * _Nullable' to non-nullable pointer type 'FBApplication * _Nonnull'

/Users/amy/WebDriverAgent/PrivateHeaders/XCTest/XCUIScreen.h:7:12: Cannot find interface declaration for 'XCUIScreen'; did you mean 'UIScreen'?
加这个也没有用

本人第一次用 xcode,没学过 swift,OC 之类的。。。。

共收到 2 条回复 时间 点赞

自己解决的,把 XCODE 升级到 9.2 就可以了。也许是那些说用 XCODE8.0+ 就可以运行的,估计是下载的 WebDriverAgent 版本比较早吧

但是有个新的问题,在模拟器上可以用 ip 访问,但是放到真机上,只能用 iproxy 端口映射访问,原因是说部分机器不能用 ip 访问。
有个 APP 叫 “办公助手”,这个 APP 就可以用 ip 访问手机上的文件。
有没有办法解决?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册