【问题标题】:RoutingHTTPServer not found build using xcodebuildRoutingHTTPServer not found 使用 xcodebuild 构建
【发布时间】:2018-04-18 23:28:09
【问题描述】:

Mac 操作系统: 10.13.4

Xcode: 9.3

Appium: 1.7.2


我无法使用 xcode 构建 WebDriverAgent 和安装 WebDriverAgent。我已经重新安装了 Appium,并且当前用户在安装 appium 模块的文件夹中确实具有 R/W 权限。我也关注了real device setup tutorial

2018-04-12 10:47:58.039414-0500 WebDriverAgentRunner-Runner[233:6835] Running tests...
2018-04-12 10:47:58.924245-0500 WebDriverAgentRunner-Runner[233:6835] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2018-04-12 10:47:58.925176-0500 WebDriverAgentRunner-Runner[233:6835] (dlopen_preflight(/var/containers/Bundle/Application/D2529C60-100A-4A31-AD0D-C5F4A33920F2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/RoutingHTTPServer.framework/RoutingHTTPServer
  Referenced from: /private/var/containers/Bundle/Application/D2529C60-100A-4A31-AD0D-C5F4A33920F2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/D2529C60-100A-4A31-AD0D-C5F4A33920F2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer: required code signature missing for '/private/var/containers/Bundle/Application/D2529C60-100A-4A31-AD0D-C5F4A33920F2/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer'
)
2018-04-12 10:47:59.008 xcodebuild[68163:1492596] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

Testing failed:
    Early unexpected exit, operation never finished bootstrapping - no restart will be attempted
** TEST FAILED **

【问题讨论】:

    标签: ios appium bootstrapping xcodebuild


    【解决方案1】:

    按照以下步骤:

    转到您的 appium 安装路径并转到 node_modules/appium-xcuitest-driver/WebDriverAgent 并从 WebDriverAgent 运行以下命令:

    bashbash Scripts/bootstrap.sh -d Scripts/bootstrap.sh -d
    

    然后从同一文件夹执行以下命令

    mkdir -p /Resources/WebDriverAgent.bundle
    

    这会解决你的问题

    【讨论】:

    • 您好 Harveer,很遗憾 RoutingHTTPServer 错误仍然存​​在。
    • @Rlupo07 你有没有在安装引导依赖后重新构建你的 WDA 项目?
    • 我在安装引导依赖项后重新构建了 WDA 项目。我可以通过在 xcode 中手动链接 RoutingHTTPServer.framework 来解决此问题。
    • 嘿@Rlupo07 如果它解决了您的问题,请投票给答案。
    • 这个答案没有解决遇到的问题。
    【解决方案2】:

    要解决此问题,请在链接框架和库部分的常规选项卡上链接 xcode 中的 RoutingHTTPServer.framework。 Look here to see where to do this in xcode

    此外,如果您在模拟器上运行,则必须使用 appium 的 1.8 beta

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-27
      • 2013-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-14
      相关资源
      最近更新 更多