使用xcodebuild找不到RoutingHTTPServer

时间:2018-04-12 16:28:39

标签: ios appium bootstrapping xcodebuild

Mac OS: 10.13.4

Xcode: 9.3

Appium: 1.7.2

我无法构建WebDriverAgent并使用xcode安装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 **

2 个答案:

答案 0 :(得分:0)

按照以下步骤操作:

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

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

然后从同一文件夹

执行以下命令
mkdir -p /Resources/WebDriverAgent.bundle

这将解决您的问题

答案 1 :(得分:0)

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

此外,如果你在模拟器上运行,你将不得不使用appium的1.8 beta