appium: 'RoutingHTTPServer/RoutingConnection.h' file not found

The problem

‘RoutingHTTPServer/RoutingConnection.h’ file not found.

I have gone through these steps:-

mkdir -p Resources/WebDriverAgent.bundle ./Scripts/bootstrap.sh -d

On executing command:- ./Scripts/bootstrap.sh -d Error Description:-

Vikass-MacBook-Pro:appium-webdriveragent himanshug$ ./Scripts/bootstrap.sh -d

Fetching dependencies *** Checking out CocoaAsyncSocket at "7.6.3" *** Checking out RoutingHTTPServer at "v1.0.2" *** Checking out YYCache at "1.1.0" *** xcodebuild output can be found in /var/folders/5z/0p24p7t93qg9qm1kfqsksm6m0000gp/T/carthage-xcodebuild.09o1Z5.log *** Downloading CocoaAsyncSocket.framework binary at "Version 7.6.3" *** Building scheme "RoutingHTTPServer tvOS" in RoutingHTTPServer.xcodeproj Failed to write to /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/RoutingHTTPServer.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “RoutingHTTPServer.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/RoutingHTTPServer/build/ArchiveIntermediates/RoutingHTTPServer%20tvOS/BuildProductsPath/Release-appletvos/RoutingHTTPServer.framework, NSFilePath=/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/RoutingHTTPServer/build/ArchiveIntermediates/RoutingHTTPServer tvOS/BuildProductsPath/Release-appletvos/RoutingHTTPServer.framework, NSUnderlyingError=0x7f8bbd53a800 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Vikass-MacBook-Pro:appium-webdriveragent himanshug$ pwd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent

Also I tried the following solution :- https://github.com/appium/appium/issues/11982

carthage bootstrap --no-use-binaries cp Cartfile.resolved Carthage ./Scripts./bootstrap.sh -d

The first command of the above gives this error:

Vikass-MacBook-Pro:appium-webdriveragent himanshug$ pwd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent

Vikass-MacBook-Pro:appium-webdriveragent himanshug$ carthage bootstrap --no-use-binaries

*** Checking out RoutingHTTPServer at "v1.0.2" *** Checking out CocoaAsyncSocket at "7.6.3" *** Checking out YYCache at "1.1.0" *** xcodebuild output can be found in /var/folders/5z/0p24p7t93qg9qm1kfqsksm6m0000gp/T/carthage-xcodebuild.NCajDO.log *** Building scheme "Mac Framework" in CocoaAsyncSocket.xcodeproj Failed to write to /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/Mac/CocoaAsyncSocket.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “CocoaAsyncSocket.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/CocoaAsyncSocket/build/ArchiveIntermediates/Mac%20Framework/BuildProductsPath/Release/CocoaAsyncSocket.framework, NSFilePath=/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/CocoaAsyncSocket/build/ArchiveIntermediates/Mac Framework/BuildProductsPath/Release/CocoaAsyncSocket.framework, NSUnderlyingError=0x7f80de660a80 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

How do i get the RoutingHTTPServer/RoutingConnection.h file to build my webdriveragent project.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Desktop OS/version used to run Appium: macOS high sierra, version 10.13.4
  • Node.js version (unless using Appium.app|exe): node v9.6.1
  • Npm or Yarn package manager: npm version 6.13.1
  • Mobile platform/version under test: iphone 6
  • Real device
  • Appium CLI or Appium.app|exe: Appium installed through npm

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 23 (5 by maintainers)

Most upvoted comments

Closed as not an appium issue.

You can get below repositories and build them.

Then, you can find .framework binaries in Developer/Xcode/DerivedData/Xxxxx/Build/Products.

btw, if your environment has a write permission issue, npm install -g appium --unsafe-perm=true --allow-root will help after uninstalling appium, I remember.