安装教程参考: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]

点运行的时候:
/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 之类的。。。。


↙↙↙阅读原文可查看相关链接,并与作者交流