question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled promise rejection (rejection id: 3): Error: spawn EACCES | iOS10

See original GitHub issue

iOS 10 (real device) & Xcode 8

When I launch my test (appium beta), test block

Appium log

[debug] [XCUITest] App installed.
[XCUITest] Using default agent: /Users/romainlouvet/Documents/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /Users/romainlouvet/Documents/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /Users/romainlouvet/Documents/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=67ce1f493620f9108ed0fe02df0b92536f6b6ab2 build test' in directory '/Users/romainlouvet/Documents/workspace/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
(node:13860) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: spawn EACCES

Xcode build logs :

11:50:49.105 xcodebuild[13894:3355410] app install set - {(
    <DVTFilePath:0x7fea4d9c3660:'/Users/romainlouvet/Library/Developer/Xcode/DerivedData/WebDriverAgent-dhddbhhblwqbekgxjrgrshemsgsy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app'>
)}
11:50:50.153 xcodebuild[13894:3357475] remoteExecutable setInstalledPath:/private/var/containers/Bundle/Application/C11ABD24-2918-4857-885E-3B77DC943E00/WebDriverAgentRunner-Runner.app

11:50:50.155 xcodebuild[13894:3357475] Updated test configuration at /var/folders/83/643lpjl10bbd8h975r2b8k_h0000gn/T/com.apple.dt.XCTest/69AFE7D0-25A5-4B61-A38F-9196F5F7B027/remote-container/tmp/WebDriverAgentRunner-69AFE7D0-25A5-4B61-A38F-9196F5F7B027.xctestconfiguration with device paths: <XCTestConfiguration: 0x7fea4da854a0>
                          testBundleURL:file:///private/var/containers/Bundle/Application/C11ABD24-2918-4857-885E-3B77DC943E00/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
                 testBundleRelativePath:(null)
                      productModuleName:WebDriverAgentRunner
...skipping...
    controllerClass = SBMainScreenAlertWindowViewController;
    event = ViewDidDisappear;
}
11:50:53.594 XCTRunner[300:109278] Got AX notification 4002
11:50:53.891 testmanagerd[295:108981] AX Notification 1021
11:50:53.895 XCTRunner[300:109278] Got AX notification 1021
11:50:53.900 XCTRunner[300:109278] Got kAXPidStatusChangedNotification for 300: active
11:50:53.911 XCTRunner[300:109278] Got AX notification 4002
11:50:53.909 testmanagerd[295:108981] AX Notification 1001
11:50:53.910 testmanagerd[295:108981] AX Notification 4002
11:50:53.911 testmanagerd[295:108981] Got user testing notification with payload {
    controllerClass = SBLeafIconViewController;
    event = ViewDidAppear;
}
11:50:53.911 testmanagerd[295:108981] AX Notification 1000
11:50:53.911 testmanagerd[295:108981] AX Notification 1000
11:50:53.911 testmanagerd[295:108981] AX Notification 1000
11:50:53.912 testmanagerd[295:108981] AX Notification 4002
11:50:53.912 testmanagerd[295:108981] Got user testing notification with payload {
    controllerClass = SBIconController;
    event = ViewDidAppear;
}
11:50:53.912 XCTRunner[300:109319] Got AX notification 4002
11:50:54.032 XCTRunner[300:109268] No application process found matching pid 300, caching
11:50:54.108 testmanagerd[295:108981] AX Notification 1011
11:50:54.108 testmanagerd[295:108981] AX Notification 1011
11:50:54.359 testmanagerd[295:109317] Got application state update: com.apple.test.WebDriverAgentRunner-Runner (300) -> 4
11:50:54.368 testmanagerd[295:108981] AX Notification 4002
11:50:54.368 testmanagerd[295:108981] Got user testing notification with payload {
    controllerClass = SBAppContainerViewController;
    event = ViewDidDisappear;
}
11:50:54.368 testmanagerd[295:108981] AX Notification 4002
11:50:54.369 testmanagerd[295:108981] Got user testing notification with payload {
    controllerClass = SBLeafIconViewController;
    event = ViewDidAppear;
}
11:50:54.371 testmanagerd[295:108981] AX Notification 1021
11:50:54.367 XCTRunner[300:109268] Got UIApplicationDidEnterBackgroundNotification
11:50:54.377 XCTRunner[300:109319] Got AX notification 4002
11:50:54.379 XCTRunner[300:109278] Got AX notification 4002
11:50:54.379 XCTRunner[300:109278] Got AX notification 1021
11:50:54.380 XCTRunner[300:109278] Got kAXPidStatusChangedNotification for 300: suspended
11:50:54.385 XCTRunner[300:109268] Done initializing for UI testing.
11:50:54.386 XCTRunner[300:109268] Loading test suite...
11:50:54.391 testmanagerd[295:108981] AX Notification 1011
11:50:54.413 XCTRunner[300:109268] Finished loading test suite, took 0.027s
11:50:54.414 XCTRunner[300:109268] -[_XCTestDriverTestObserver testBundleWillStart:]
11:50:54.414 XCTRunner[300:109268] Running suite...
11:50:54.415 XCTRunner[300:109268] -[_XCTestDriverTestObserver testSuiteWillStart:]
2016-09-28 11:50:53.060764 XCTRunner[300:109268] Running tests...
2016-09-28 11:50:53.844764 XCTRunner[300:109268] Continuing to run tests in the background with task ID 1
Test Suite 'All tests' started at 2016-09-28 11:50:54.414
11:50:54.485 xcodebuild[13894:3357533] (LOG ARBITER) Rotating message buffer with 1 messages.
11:50:58.467 xcodebuild[13894:3355875] (LOG ARBITER) Rotating message buffer with 19 messages.
11:51:25.476 xcodebuild[13894:3358201] (LOG ARBITER) Rotating message buffer with 40 messages.
11:51:28.479 xcodebuild[13894:3357514] (LOG ARBITER) Rotating message buffer with 19 messages.
11:52:01.398 xcodebuild[13894:3358822] (LOG ARBITER) Rotating message buffer with 4 messages.


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Sep 28, 2016

I’ve published appium-xcuitest-driver@2.0.18 which will hopefully give some more information about what is going on.

Can you update your appium installation and try again? Thanks!

1reaction
imurchiecommented, Sep 28, 2016

I’ve opened a PR to hopefully catch the error and give more information about what is going on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnhandledPromiseRejectionWar...
UnhandledPromiseRejectionWarning : Unhandled promise rejection (rejection id: 1): Error: spawn EACCES Ionic 3 ... I 've been working on this issue ...
Read more >
Ios 10 with xcode 8 issue - Appium Discuss
Hello I am using Appium v.1.6.0 -beta1, xcode 8, ios 10 real device The issue ... promise rejection (rejection id: 3): Error: spawn...
Read more >
How to fix this Error: spawn EACCES - Edward Beazer Blog
Access denied error while trying to build Android app bundle. This error comes up when you don't have full permissions to the project...
Read more >
UnhandledPromiseRejectionWar...
Error : "UnhandledPromiseRejectionWarning: Unhandled promise rejection ( rejection id : 1): Error : spawn EACCES (node:23798) [DEP0018] ...
Read more >
[Done]-FullCalendar's dayClick not firing when a date is tapped
... promise rejection (rejection id: 1): Error: spawn EACCES Ionic 3 ... from the element var selectedDateStr = $(event.target).attr('data-date'); // 3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found