【问题标题】:IOS Appium fails when running test scriptsIOS Appium 在运行测试脚本时失败
【发布时间】:2017-07-07 11:50:51
【问题描述】:

我设法让 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

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

【问题讨论】:

    标签: ios bash appium-ios carthage python-appium


    【解决方案1】:

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

    即删除 /Library/Frameworks 中的框架

    【讨论】:

      猜你喜欢
      • 2014-03-25
      • 2017-06-11
      • 2013-10-31
      • 1970-01-01
      • 2016-12-02
      • 2019-11-22
      • 2018-07-26
      • 2021-04-23
      • 2020-07-01
      相关资源
      最近更新 更多