appium: Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted"

The problem

I am trying to start WebDriverAgent on my device but it always giving me below error: Error Domain=IDETestOperationsObserverErrorDomain Code=6 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted”

I tried following: Reinstalled following : • brew install node • brew install npm • brew install ideviceinstaller • npm install -g appium • npm install wd • brew install ios-webkit-debug-proxy • brew install --HEAD libimobiledevice • brew install usbmuxd • brew install carthage • npm install -g ios-deploy

Reinstalled XCode. Restarted device and system but none has helped.

I am using Appium 1.6.4, ipad mini with ios 10.3.1

I have check WebDriverAgent signing and it is correct. It do not show any issue. I have signed many times till now but this is issue has just popped up after upgrading to Appium 1.6.4

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.4
  • Last Appium version that did not exhibit the issue (if applicable): 1.6.3
  • Desktop OS/version used to run Appium: Mac os Sierra
  • Node.js version (unless using Appium.app|exe): node v7.10.0
  • Mobile platform/version under test: ios 10.3.1
  • Real device or emulator/simulator: Real
  • Appium CLI or Appium.app|exe: CLI

Details

I am trying to start appium but it is giving error as below: [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [Xcode] 2017-05-12 14:03:15.605 xcodebuild[26488:108818] 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} [Xcode] [Xcode] ** TEST EXECUTE FAILED ** [Xcode] [Xcode] [Xcode] 2017-05-12 14:03:15.304326+0530 XCTRunner[431:41592] Running tests… [Xcode] 2017-05-12 14:03:15.603638+0530 XCTRunner[431:41611] Connection peer refused channel request for “dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface”; channel canceled <DTXChannel: 0x174092ac0> [Xcode] [XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’ [debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1494577995622 (14:03:15 GMT+0530 (IST))

Link to Appium logs

Appium logs: https://gist.github.com/abh7nav/aa3f55dcd4f922b94660e4727a73f5b0

XCode build logs https://gist.github.com/abh7nav/6299f2c95569ca9aae20652917a54903

Code To Reproduce Issue [ Good To Have ]

I am running appium command from terminal and then trying to open appium inspector from appium GUI. Same is happening correctly on other machine and same device.

I have check WebDriverAgent signing and it is correct. It do not show any issue.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (2 by maintainers)

Most upvoted comments

@mykola-mokhnach thanks for your great response and close it as soon as possible as you are working as a bot to close issues out asap. It would also be helpful if the bot within yourself can post relevant comments which can help users like me to know about solution or at least reason to have some pointer. otherwise, you are a great BOT!!!

Another update for anyone having issues with this. I was running my command line appium server on my mac mini through a SSH tunnel and it was throwing this error. But when I run the server in a terminal on the mac mini this issues went away. I feel like I need to start sacrificing goats to avoid issues with WebDriverAgent.

Sorry for you being lazy to use search and check whether any similar issues have been already reported.

Mykola enjoys closing tickets without further info

Hi, Can anyone pinpoint the correct solution for this issue ? I am stuck up with this issue for few months now. Even after wiping everything multiple times and reinstalling - I keep ending up with same error. One of my colleague uses the same dev certificate and it works for him. Same setting, same configuration doesn’t work for me and throws the below error:

command: xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=8e82ea984d9807b78b7e2b2f03c891bce1d5b039 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.1.1 -xcconfig /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/appium-config.xcconfig

Error: dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from: /var/containers/Bundle/Application/B554D04A-9B9B-4B98-9E95-29F89D2C10B8/WebDriverAgentRunner-Runner.app/XCTRunner Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/B554D04A-9B9B-4B98-9E95-29F89D2C10B8/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of ‘/private/var/containers/Bundle/Application/B554D04A-9B9B-4B98-9E95-29F89D2C10B8/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest’ /private/var/containers/Bundle/Application/B554D04A-9B9B-4B98-9E95-29F89D2C10B8/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: code signing blocked mmap() of ‘/private/var/containers/Bundle/Application/B554D04A-9B9B-4B98-9E95-29F89D2C10B8/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest’ 2017-10-17 16:27:15.676 xcodebuild[6035:138392] 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: Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted) ** TEST FAILED **

Details: Appium 1.7.1 Mac OS - 10.12.5 Xcode - 8.3.3 Device - iPhone 5c/IOS 10.1.1

Installed all the dependencies like Carthage, libimobiledevice, iso-deploy, bootstrap dependencies. Added the XCTest framework to WebDriverLib - Target in Xcode. Deleted the derived data folder many times before building the project. Deleted the developer certificate, provisioning profiles and re added everything from scratch. But nothing works 😦

Every post says it could be signing issue or different versions of Carthage. Since it is working in other Mac with same certificate - I doubt there is no signing issue. I ensured Carthage is installed in only one location (there is no .nvm).