0

我设法让appium运行。不幸的是,我无法成功运行测试。appium 测试完成后,我只会收到一条独特的错误消息,如下所示:

[XCUITest] Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 134
    at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:192:7)
    at maybeClose (internal/child_process.js:890:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)
 { Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 134
    at ChildProcess.<anonymous> (../../lib/teen_process.js:66:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:192:7)
    at maybeClose (internal/child_process.js:890:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)
  stdout: '\u001b[1mFetching dependencies\n',
  stderr: 'dyld: Symbol not found: __TMV6Result8AnyError\n  Referenced from: /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift\n  Expected in: /Library/Frameworks/CarthageKit.framework/Versions/Current/Frameworks/Result.framework/Versions/A/Result\n in /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift\nScripts/bootstrap.sh: line 45: 18795 Abort trap: 6           carthage bootstrap $USE_SSH\n',
  code: 134 }

任何人都可以阐明这件事吗?非常感谢任何输入。

编辑:我调查了这个问题,当我输入以下命令时,我发现系统中安装的 Carthage 有问题:

cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/

/bin/bash Scripts/bootstrap.sh -d

我收到以下错误:

Fetching dependencies
dyld: Symbol not found: __TMV6Result8AnyError
  Referenced from: /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift
  Expected in: /Library/Frameworks/CarthageKit.framework/Versions/Current/Frameworks/Result.framework/Versions/A/Result
 in /usr/local/Cellar/carthage/0.19.1/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks/ReactiveSwift.framework/ReactiveSwift
Scripts/bootstrap.sh: line 45: 26035 Abort trap: 6           carthage bootstrap $USE_SSH

虽然我不确定如何解决这个问题。非常感谢任何输入。

4

1 回答 1

0

如果您有旧版本的 /Library/Frameworks/CarthageKit.framework,就会发生这种情况。如果您使用的是 Carthage 的 Homebrew 版本,则不需要该框架副本,因此可以安全地删除它。

即,删除 /Library/Frameworks 中的框架

于 2017-02-27T06:44:56.787 回答