New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios 10 XCUITest- signing issue #6867

Closed
acdurai opened this Issue Sep 20, 2016 · 81 comments

Comments

Projects
None yet
@acdurai
Copy link

acdurai commented Sep 20, 2016

@imurchie
AM getting the below mentioned issue while trying to run the test in iOS 10.
Environment details
xcode -8
MAC -10.11.16
iphone 6
iOS -10.0.1

I Did the code signing for webdriver agent and installed the webdriver agent app in device also,even though am getting the below mentioned error.

Please help me to fix the issue

[XCUITest] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'

[XCUITest] Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.

[XCUITest] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'

[XCUITest]

[XCUITest]
Testing failed:

[XCUITest] Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:236:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:236:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code '0'
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:236:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 67457 ms - 167

@acdurai acdurai changed the title ios 10 XCUITest- sining issue ios 10 XCUITest- signing issue Sep 20, 2016

@thejuskrishna

This comment has been minimized.

Copy link

thejuskrishna commented Sep 22, 2016

Signing certificate has to be created for the WebDriverAgentRunner project in node_modules. But not sure how to pass the certificate though the appium script.

@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 22, 2016

Having this same issue. I think it is caused by WebDriverAgent not getting signed due to it not having a developement team.

Following this: https://github.com/appium/appium-xcuitest-driver#real-devices

If I try

xcodebuild \
  -project' <path-to-WebDriverAgent>/WebDriverAgent.xcodeproj \
  -scheme WebDriverAgentRunner \
  -sdk iphoneos \
  -destination platform=iOS,id=<UDID> \
  CODE_SIGN_IDENTITY=iPhone Developer \
  CODE_SIGNING_REQUIRED=YES \
  test

I get an error saying

WebDriverAgentLib will not be code signed because its settings don't specify a development team.

...

Testing failed:
    Code signing is required for product type 'Framework' in SDK 'iOS 10.0'
** TEST FAILED **
@thejuskrishna

This comment has been minimized.

Copy link

thejuskrishna commented Sep 22, 2016

To solve this error, I opened the project WebDriverAgent.xcodeproj in XCode
and added my account.
In the next step it throws an error saying deviceconsole not found. I
compiled and installed deviceconsole.
And finally I reach the above error.

On Fri, Sep 23, 2016 at 12:24 AM, Nathan Greeney notifications@github.com
wrote:

Having this same issue. I think it is caused by WebDriverAgent not getting
signed due to it not having a developement team.

Following this: https://github.com/appium/appium-xcuitest-driver#real-
devices

If I try

xcodebuild
-project' /WebDriverAgent.xcodeproj
-scheme WebDriverAgentRunner
-sdk iphoneos
-destination platform=iOS,id=
CODE_SIGN_IDENTITY=iPhone Developer
CODE_SIGNING_REQUIRED=YES
test

I get an error saying

WebDriverAgentLib will not be code signed because its settings don't specify a development team.

...

Testing failed:
Code signing is required for product type 'Framework' in SDK 'iOS 10.0'
** TEST FAILED **


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6867 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy9tq3lN-Vv_kT7mA6tJYn9zFqiELks5qss7wgaJpZM4KB2w2
.

thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)

@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 22, 2016

So I went into the Xcode project and changed the Team which then required me to change the Project Bundle Identifier since it couldn't use com.facebook.

That solved that issue but left me with the WebDriverAgent crashing right off the bat when it was loaded to the phone.

Getting these logs and errors:

[debug] [XCUITest] App is installed.
[debug] [XCUITest] fullReset not requested. No need to install.
[XCUITest] Using default agent: /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/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/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=<UDID> build test' in directory '/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Nathan/Library/Developer/Xcode/DerivedData/WebDriverAgent-cztbxbrgjvgebmdxjvobdqpmtkpj/Logs/Test/E46D4C62-E0BD-4E8D-80AC-8C88FA978644/Session-WebDriverAgentRunner-2016-09-22_155330-WJWWBe.log
[Xcode] 2016-09-22 15:53:39.842 xcodebuild[15292:2075571] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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] 
Testing failed:

[Xcode]     Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **


[Xcode] 2016-09-22 15:53:39.770339 XCTRunner[395:195517] Running tests...
2016-09-22 15:53:39.832332 XCTRunner[395:195517] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-09-22 15:53:39.832442 XCTRunner[395:195517] (dlopen_preflight(/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
  Referenced from: /private/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: required code signature missing for '/private/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML'
)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=<UDID> build test' in directory '/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Nathan/Library/Developer/Xcode/DerivedData/WebDriverAgent-cztbxbrgjvgebmdxjvobdqpmtkpj/Logs/Test/161C7B17-2CFA-439C-9FF9-979CE8A9A1A5/Session-WebDriverAgentRunner-2016-09-22_155345-2xbPI2.log
[Xcode] 2016-09-22 15:53:53.895 xcodebuild[15565:2076465] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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] 
Testing failed:
    Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

[Xcode] ** TEST FAILED **


[Xcode] 2016-09-22 15:53:53.837959 XCTRunner[399:195815] Running tests...
2016-09-22 15:53:53.888615 XCTRunner[399:195815] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-09-22 15:53:53.888711 XCTRunner[399:195815] (dlopen_preflight(/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
  Referenced from: /private/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: required code signature missing for '/private/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML'
)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
    at SubProcess.<anonymous> (lib/webdriveragent.js:244:25)
    at emitTwo (events.js:87:13)
    at SubProcess.emit (events.js:172:7)
    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
 [Error: xcodebuild failed with code 65]
@thejuskrishna

This comment has been minimized.

Copy link

thejuskrishna commented Sep 23, 2016

Looks like we have to do the same for KissXML.

On Fri, Sep 23, 2016 at 3:43 AM, Nathan Greeney notifications@github.com
wrote:

So I went into the Xcode project and changed the Team which then required
me to change the Project Bundle Identifier since it couldn't use
com.facebook.

That solved that issue but left me with the WebDriverAgent crashing right
off the bat when it was loaded to the phone.

Getting these logs and errors:

[debug] [XCUITest] App is installed.
[debug] [XCUITest] fullReset not requested. No need to install.
[XCUITest] Using default agent: /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/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/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id= build test' in directory '/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Nathan/Library/Developer/Xcode/DerivedData/WebDriverAgent-cztbxbrgjvgebmdxjvobdqpmtkpj/Logs/Test/E46D4C62-E0BD-4E8D-80AC-8C88FA978644/Session-WebDriverAgentRunner-2016-09-22_155330-WJWWBe.log
[Xcode] 2016-09-22 15:53:39.842 xcodebuild[15292:2075571] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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]
Testing failed:

[Xcode] Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **

[Xcode] 2016-09-22 15:53:39.770339 XCTRunner[395:195517] Running tests...
2016-09-22 15:53:39.832332 XCTRunner[395:195517] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-09-22 15:53:39.832442 XCTRunner[395:195517](dlopen_preflight%28/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner%29: Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/AB731303-9755-4DC1-8B88-9D5A37CBC31F/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: required code signature missing for)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command 'xcodebuild -project /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id= build test' in directory '/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/Nathan/Library/Developer/Xcode/DerivedData/WebDriverAgent-cztbxbrgjvgebmdxjvobdqpmtkpj/Logs/Test/161C7B17-2CFA-439C-9FF9-979CE8A9A1A5/Session-WebDriverAgentRunner-2016-09-22_155345-2xbPI2.log
[Xcode] 2016-09-22 15:53:53.895 xcodebuild[15565:2076465] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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]
Testing failed:
Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

[Xcode] ** TEST FAILED **

[Xcode] 2016-09-22 15:53:53.837959 XCTRunner[399:195815] Running tests...
2016-09-22 15:53:53.888615 XCTRunner[399:195815] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-09-22 15:53:53.888711 XCTRunner[399:195815](dlopen_preflight%28/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner%29: Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/20D2283A-D88B-4189-BFB2-53808E1F13E5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: required code signature missing for)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:244:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
[Error: xcodebuild failed with code 65]


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6867 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPjy60KIrHeJBEJl0ykWBxmB1rTAApGks5qsv2ZgaJpZM4KB2w2
.

thejus krishna
alumnus, govt. model engineering college, cochin (2006-10)
+91-8105912640 (bangalore)
+91-9895222064 (cochin)

@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 23, 2016

Unsure how to change it for KissXML so I went a different route and made a new provisioning that was a wild card for com.facebook.*

This as well as this changed document for real devices readme

I try running the ./Scripts/build.sh and get an error of ARCHIVE FAILED
Starts with this:

Fetching dependencies
Building Inspector
Creating bundle directory...
Building inspector.js...

> web-driver-inspector@1.0.0 build /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector
> webpack --progress --colors

Hash: 9ed7d0b85cc08341fd0f  
Version: webpack 1.13.2
Time: 81ms
   [0] multi main 28 bytes {0} [built] [1 error]
    + 1 hidden modules

ERROR in ./js/app.js
Module parse failed: /Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Inspector/js/app.js Unexpected token (59:4)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (59:4)
    at Parser.pp$4.raise (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
    at Parser.pp.unexpected (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
    at Parser.pp$3.parseExprAtom (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1822:12)
    at Parser.pp$3.parseExprSubscripts (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1715:21)
    at Parser.pp$3.parseMaybeUnary (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1692:19)
    at Parser.pp$3.parseExprOps (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1637:21)
    at Parser.pp$3.parseMaybeConditional (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1620:21)
    at Parser.pp$3.parseMaybeAssign (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
    at Parser.pp$3.parseParenAndDistinguishExpression (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1861:32)
    at Parser.pp$3.parseExprAtom (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1796:19)
    at Parser.pp$3.parseExprSubscripts (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1715:21)
    at Parser.pp$3.parseMaybeUnary (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1692:19)
    at Parser.pp$3.parseExprOps (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1637:21)
    at Parser.pp$3.parseMaybeConditional (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1620:21)
    at Parser.pp$3.parseMaybeAssign (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
    at Parser.pp$3.parseExpression (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1573:21)
    at Parser.pp$1.parseReturnStatement (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:839:33)
    at Parser.pp$1.parseStatement (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:699:34)
    at Parser.pp$1.parseBlock (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:981:25)
    at Parser.pp$3.parseFunctionBody (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:2105:24)
    at Parser.pp$3.parseMethod (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:2075:10)
    at Parser.pp$1.parseClassMethod (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1137:25)
    at Parser.pp$1.parseClass (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:1118:14)
    at Parser.pp$1.parseStatement (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:697:19)
    at Parser.pp$1.parseTopLevel (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:638:25)
    at Parser.parse (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:516:17)
    at Object.parse (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/acorn/dist/acorn.js:3098:39)
    at Parser.parse (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/lib/Parser.js:902:15)
    at DependenciesBlock.<anonymous> (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/lib/NormalModule.js:104:16)
    at DependenciesBlock.onModuleBuild (/Users/Nathan/.nvm/versions/node/v4.5.0/lib/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
 @ multi main
Done
Build settings from command line:
    CODE_SIGN_IDENTITY = 
    CODE_SIGNING_REQUIRED = NO
    SDKROOT = iphoneos10.0
@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 23, 2016

Ended with this:

** ARCHIVE FAILED **


The following build commands failed:
    CompileC /Users/Nathan/Library/Developer/Xcode/DerivedData/WebDriverAgent-cztbxbrgjvgebmdxjvobdqpmtkpj/Build/Intermediates/ArchiveIntermediates/WebDriverAgentRunner/IntermediateBuildFilesPath/WebDriverAgent.build/Release-iphoneos/WebDriverAgentLib.build/Objects-normal/armv7/XCTestPrivateSymbols.o WebDriverAgentLib/Utilities/XCTestPrivateSymbols.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 23, 2016

Turns out this error is just due to not using the -d option which is used when running through appium.

I did run into another issue of trying to build the WebDrvierAgent on my phone when an old version was on it. Had to remove the old version before xcodebuild would install a fixed version on the phone.

@yaphatak

This comment has been minimized.

Copy link
Contributor

yaphatak commented Sep 24, 2016

I think it was mainly due to having old version of app. -d was part of build.sh you ran.

@dilsreccse

This comment has been minimized.

Copy link

dilsreccse commented Sep 26, 2016

Hi @imurchie
i'm getting the below mentioned error, with reference to this appium/appium-xcuitest-driver#140 ,i tried what signing the WDA even then i'm getting the same issue. Could you assist me how to resolve this ?

Error :
Xcode] Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.

[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'

[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'

[Xcode]
Testing failed:

[Xcode] Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:259:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
[Error: xcodebuild failed with code 65]
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code '0'
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:259:25)
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Sep 26, 2016

@dilsreccse Did you sign both WebDriverAgentLib and WebDriverAgentRunner in Xcode? With your team profile?

@acdurai

This comment has been minimized.

Copy link

acdurai commented Sep 26, 2016

@imurchie
I did the signin for both WebDriverAgentLib and WebDriverAgentRunner in Xcode. When I try to run the test it installed WebDriverAgentRunner in the device, after that test is not running .

Please help us to fix the issue

@dilsreccse

This comment has been minimized.

Copy link

dilsreccse commented Sep 26, 2016

screen shot 2016-09-26 at 9 31 38 pm
@imurchie : yeah i signed with my Apple developer ID still i face the issue, i'm getting a issue on RoutingHTTPServer/RoutingConnection.h when i build the project. we need to build the project or just the signing is enough ?

@ngreeney

This comment has been minimized.

Copy link

ngreeney commented Sep 26, 2016

@dilsreccse Did you do all the Targets though not just the AgentLib? I am guessing you missed the AgentRunner at least.

[Xcode] Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.

@dilsreccse

This comment has been minimized.

Copy link

dilsreccse commented Sep 26, 2016

@ngreeney : Select a development team for WebDriverAgentRunner in the project editor. where is it available ?

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Sep 26, 2016

In the upper left corner of the details pain (just to the right of the list on the left, in your picture above) there is a menu to select the target. WebDriverAgentLib is selected by default. Select WebDriverAgentRunner.

@acdurai

This comment has been minimized.

Copy link

acdurai commented Sep 26, 2016

@imurchie

When i run the test in simulator and device,app is keep on opening and closing.

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Sep 26, 2016

@acdurai That is not a code signing issue. Please create a new issue with all the information asked for (including logs). Muddying this issue does no one any good.

@acdurai

This comment has been minimized.

Copy link

acdurai commented Sep 26, 2016

ok thanks

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Sep 27, 2016

For all looking at this, we have added the ability to configure signing through an xcconfig file, which needs to have an entry for

DEVELOPMENT_TEAM = <Team ID>
CODE_SIGN_IDENTITY = iPhone Developer

The team id is retrievable from your Apple developer account, under membership.

Save the above info in a file like 'myconfig.xcconfig' and pass the full path in using the xcodeConfigFile desired capability.

@dilsreccse

This comment has been minimized.

Copy link

dilsreccse commented Sep 29, 2016

@imurchie & @ngreeney - It worked & i was able to launch my application on the device thank you :)

@s-sridevi15

This comment has been minimized.

Copy link

s-sridevi15 commented Sep 29, 2016

hi, I tried with Appium v1.6.0-beta2 on ios 10. I did the same set up and which imurchie done. It installs app, but not doing anything after that. My tests are running fine on ios9.x, but not on ios10. Can somebody please help ? I do not see any error in the appium logs too.

Btw, do we need to associate with apple id on the device as when I run tests, a pop up triggerred to enter apple id

I am trying to run on device. Will it work on device or just on simulator?

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Oct 11, 2016

@LiudasTumasonis Is your provisioning profile wildcard?

@LiudasTumasonis

This comment has been minimized.

Copy link

LiudasTumasonis commented Oct 11, 2016

@imurchie I solved that problem with our iOS devs, now I am facing the following issue:

[Xcode]
Testing failed:
Run test suite UITestingUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)

[Xcode] Failing tests:
-[UITestingUITests testRunner]
** TEST FAILED **

if it helps, here is more information:
screen shot 2016-10-11 at 3 14 37 pm

I have tried running on both iOS 10 and iOS 9 devices - same issue.
The app launches, but instantly crashes. I know the app is built correctly because the exact same version worked before updating xcode and appium...

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Oct 11, 2016

What are your desired capabilities?

@LiudasTumasonis

This comment has been minimized.

Copy link

LiudasTumasonis commented Oct 11, 2016

@imurchie here are the capabilities:

:appium:
:caps:
:platformName: ios
:deviceName: iPhone 6s Gold
:app: app_name.ipa
:bundleid: my_app_bundle_id
:newCommandTimeout: 1800
:autoAcceptAlerts: true
:automationName: XCUITest
:realDeviceLogger: /usr/local/lib/node_modules/deviceconsole/deviceconsole
:xcodeConfigFile: /Users/LT/Documents/Testing/myconfig.xcconfig
:appium_lib:
:port: 4723
:wait: 30

@s-sridevi15

This comment has been minimized.

Copy link

s-sridevi15 commented Oct 11, 2016

@imurchie yes provisioning profile is wild card.

@LiudasTumasonis

This comment has been minimized.

Copy link

LiudasTumasonis commented Oct 12, 2016

@imurchie I figured out some more information if this helps - when I run a test case where I try to set location to somewhere else it fails. As soon as I remove the set_location part it launches fine. I figured that part when I found this piece in Appium logs:

[JSONWP Proxy] Proxying [POST /wd/hub/session/5f123ee1-9845-489a-a734-6dabc1328d56/location] to [POST http://localhost:8100/session/3D317147-79FB-4EA1-962A-C1FD2F4419CB/location] with body: {"location":{"latitude":44,...
[JSONWP Proxy] Got response with status 200: {"value":"Unhandled endpoin...

I hope this helps. I am not sure what exactly changed as far as setting location in iOS 9 vs iOS 10, but this is definitely what's causing crash on launch.

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Jan 4, 2017

@debbie-qin I presume this is you tryng to run the Scripts/bootstrap.sh command? If it is, you need to add -d so as to not build the Inspector, which is not used.

@debbie-qin

This comment has been minimized.

Copy link

debbie-qin commented Jan 5, 2017

@imurchie I used Scripts/bootstrap.sh -d:
xx-xx-xxxx:WebDriverAgent xx-xx-xx$ sudo ./Scripts/bootstrap.sh -d
Password:xxxx
Fetching dependencies.
That's all, is it worked ?

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Jan 5, 2017

I don't know what the problem was (this thread is too twisted to know what is going on anymore) but that solves the error in building the Inspector.

@debbie-qin

This comment has been minimized.

Copy link

debbie-qin commented Jan 6, 2017

Yeah, the error would happen when begin to building inspector, I try to delete Inspector/node_modules, but it would be created again.

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Jan 6, 2017

That should be fixed, then, since the -d options excludes the Inspector.

@fancychimp

This comment has been minimized.

Copy link

fancychimp commented Jan 6, 2017

@imurchie I would like to try your solution of passing an .xcconfig file. I am working on a pre-existing maven project. Do you know how I can pass the full path in using the xcodeConfigFile, with maven?

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Jan 6, 2017

I don't know anything about Maven. But however you pass in desired capabilities, you should be able to send the xcodeConfigFile capability.

@fancychimp

This comment has been minimized.

Copy link

fancychimp commented Jan 6, 2017

@imurchie I apologize for my lack of understanding, this is my first time working with Maven. I have created the .xcconfig file and have passed values for for both

DEVELOPMENT_TEAM = <Team ID>
CODE_SIGN_IDENTITY = iPhone Developer

However, when I go to the properties file to add the xcodeConfigFile capability, it is not displaying as one I can pass.

I am on Appium version 1.6.3.
My list of desired capabilities is:

platformName=iOS
platformVersion=9.3.2
udid=<UDID>
deviceName=ipod
noReset=false
app=<app>.ipa
xcodeConfigFile=~/path/to/config/myconfig.xcconfig
automationName=XCUITest
hubURL=http://0.0.0.0:4723/wd/hub
appiumServer=true

But xcodeConfigFile remains grayed out in the IDE. I have also attempted to save the xcconfig file as both a text or properties file to see if that would trigger the new desired capabilities, but that did not work. Any help, or a point in the right direction is greatly appreciated.

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Jan 6, 2017

I do not know. This would be better asked on https://discuss.appium.io/

@fancychimp

This comment has been minimized.

Copy link

fancychimp commented Jan 6, 2017

Thank you for your quick response. I will ask there.

@debbie-qin

This comment has been minimized.

Copy link

debbie-qin commented Jan 11, 2017

@imurchie I have solved the code signing issue, but now it failed with above error:

[Appium] Welcome to Appium v1.6.3 (REV 604f4b6a0785e0295e548e6d033823303da19061)
[Appium] Non-default server args:
[Appium]   app: '/Users/beyondsoft/Desktop/xxxx.ipa'
[Appium]   udid: 'bb1f6c5abfef652ef6b087f434acb8de105b90d4'
[Appium] Deprecated server args:
[Appium]   --app => --default-capabilities '{"app":"/Users/beyondsoft/Desktop/xxxx.ipa"}'
[Appium]   -U,--udid => --default-capabilities '{"udid":"bb1f6c5abfef652ef6b087f434acb8de105b90d4"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium]   app: '/Users/beyondsoft/Desktop/com.yahoo.Aerogram-37142-debug.ipa'
[Appium]   udid: 'bb1f6c5abfef652ef6b087f434acb8de105b90d4'
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"com.yahoo.Aerogram","automationName":"XCUITest","platformName":"iOS","screenshotWaitTimeout":"240","deviceName":"iPhone 5c"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"com.yahoo.Aerogram","automationName":"XCUITest","platformName":"iOS","screenshotWaitTimeout":"240","deviceName":"iPhone 5c"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium]   app: 'xxxxxx'
[Appium]   automationName: 'XCUITest'
[Appium]   platformName: 'iOS'
[Appium]   screenshotWaitTimeout: '240'
[Appium]   deviceName: 'iPhone 5c'
[Appium]   udid: 'bb1f6c5abfef652ef6b087f434acb8de105b90d4'
[debug] [XCUITest] XCUITestDriver version: 2.4.3
[BaseDriver] Capability 'screenshotWaitTimeout' changed from string ('240') to integer (240). This may cause unexpected behavior
[BaseDriver] Session created with session id: 3ddfabf0-a020-498f-8463-1f57e961f6f2
[debug] [XCUITest] Xcode version set to '8.2.1'
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [XCUITest] Available devices: bb1f6c5abfef652ef6b087f434acb8de105b90d4
[debug] [XCUITest] Creating iDevice object with udid bb1f6c5abfef652ef6b087f434acb8de105b90d4
[XCUITest] Determining device to run tests on: udid: 'bb1f6c5abfef652ef6b087f434acb8de105b90d4', real device: true
[debug] [XCUITest] App is an iOS bundle, will attempt to run as pre-existing
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger 'idevicesyslog'
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=bb1f6c5abfef652ef6b087f434acb8de105b90d4 -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/beyondsoft/Library/Developer/Xcode/DerivedData/WebDriverAgent-cdbymtonqyssjhfwnanxtomfuiox/Logs/Test/3DED0174-E504-404C-B138-8F97F6342205/Session-WebDriverAgentRunner-2017-01-11_103154-C9tXoL.log
[Xcode] 2017-01-11 10:32:20.534 xcodebuild[91934:3213179]  DTDeviceKit: Could not start house arrest service for app identifier com.apple.test.WebDriverAgentRunner-Runner [Error Domain=com.apple.dtdevicekit Code=-402653093 "Too many instances of this service are already running." UserInfo={NSLocalizedFailureReason=Too many instances of this service are already running., com.apple.dtdevicekit.stacktrace=(
	0   DTDeviceKitBase                     0x000000011860237b DTDKCreateNSError + 113
	1   DTDeviceKitBase                     0x0000000118602ab9 DTDK_AMDErrorToNSError + 791
	2   DTDeviceKitBase                     0x00000001186142a5 __70-[DTDKRemoteDeviceConnection startHouseArrestServiceForAppIdentifier:]_block_invoke + 100
	3   DTDeviceKitBase                     0x0000000118613181 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_4 + 22
	4   DTDeviceKitBase                     0x00000001186052c7 __DTDKExecuteInSession_block_invoke + 38
	5   DTDeviceKitBase                     0x00000001186048f0 __DTDKExecuteWithConnection_block_invoke_2 + 477
	6   DTDeviceKitBase                     0x00000001186046ec __DTDKExecuteWithConnection_block_invoke + 107
	7   libdispatch.dylib                   0x00007fffda0c6128 _dispatch_client_callout + 8
	8   libdispatch.dylib                   0x00007fffda0c6d62 _dispatch_barrier_sync_f_invoke + 83
	9   libdispatch.dylib                   0x00007fffda0d1674 _dispatch_barrier_sync_f_slow + 540
	10  DVTFoundation                       0x000000010f8ff95b DVTDispatchBarrierSync + 206
	11  DVTFoundation                       0x000000010f8dc307 -[DVTDispatchLock performLockedBlock:] + 116
	12  DTDeviceKitBase                     0x00000001186045f6 DTDKExecuteWithConnection + 223
	13  DTDeviceKitBase                     0x0000000118605251 DTDKExecuteInSession + 121
	14  DTDeviceKitBase                     0x00000001186130b8 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_3 + 117
	15  DVTFoundation                       0x000000010f8fecb7 __DVTDispatchAsync_block_invoke + 827
	16  libdispatch.dylib                   0x00007fffda0cef5f _dispatch_call_block_and_release + 12
	17  libdispatch.dylib                   0x00007fffda0c6128 _dispatch_client_callout + 8
	18  libdispatch.dylib                   0x00007fffda0dbc10 _dispatch_continuation_pop + 533
	19  libdispatch.dylib                   0x00007fffda0d2ea3 _dispatch_async_redirect_invoke + 734
	20  libdispatch.dylib                   0x00007fffda0c7ee0 _dispatch_root_queue_drain + 476
	21  libdispatch.dylib                   0x00007fffda0c7cb7 _dispatch_worker_thread3 + 99
	22  libsystem_pthread.dylib             0x00007fffda313736 _pthread_wqthread + 1299
	23  libsystem_pthread.dylib             0x00007fffda313211 start_wqthread + 13
), NSLocalizedRecoverySuggestion=Too many instances of this service are already running., NSLocalizedDescription=Too many instances of this service are already running.}]

[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: Running tests...
[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: Unable to load configuration data from specified path /var/folders/sv/0x5js8lj6k1gbk3gv45k171w0000gn/T/com.apple.dt.XCTest/F3FE2710-3632-4885-9870-564B8D5BB553/remote-container/tmp/WebDriverAgentRunner-F3FE2710-3632-4885-9870-564B8D5BB553.xctestconfiguration; error: The file doesn\M-b\M^@\M^Yt exist.
[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: Looking for test bundles in /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns
[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: Found test bundle at /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: Looking for configurations in /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Jan 11 10:32:28 iPhone XCTRunner[394] <Notice>: No configurations found, creating a default configuration that will run all tests.
[Xcode] 2017-01-11 10:32:32.957 xcodebuild[91934:3212939] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "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] 
Testing failed:
	Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **


[Xcode] 2017-01-11 10:32:27.920468 XCTRunner[394:38753] [Accessibility] ****************** Loading GAX Client Bundle ****************
2017-01-11 10:32:28.119278 XCTRunner[394:38753] Running tests...
2017-01-11 10:32:28.128550 XCTRunner[394:38753] Unable to load configuration data from specified path /var/folders/sv/0x5js8lj6k1gbk3gv45k171w0000gn/T/com.apple.dt.XCTest/F3FE2710-3632-4885-9870-564B8D5BB553/remote-container/tmp/WebDriverAgentRunner-F3FE2710-3632-4885-9870-564B8D5BB553.xctestconfiguration; error: The file doesn’t exist.
2017-01-11 10:32:28.130021 XCTRunner[394:38753] Looking for test bundles in /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns
2017-01-11 10:32:28.131803 XCTRunner[394:38753] Found test bundle at /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
2017-01-11 10:32:28.134743 XCTRunner[394:38753] Looking for configurations in /var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
2017-01-11 10:32:28.136763 XCTRunner[394:38753] No configurations found, creating a default configuration that will run all tests.
2017-01-11 10:32:32.860709 XCTRunner[394:38753] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2017-01-11 10:32:32.862077 XCTRunner[394:38753] (dlopen_preflight(/var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/Peertalk.framework/Peertalk
  Referenced from: /private/var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk: required code signature missing for '/private/var/containers/Bundle/Application/C9E0C416-574C-4B9C-91F6-A74D6D58975A/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/Peertalk.framework/Peertalk'
)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down Logger process (pid 91942)
[XCUITest] System log exited with code '0'
@thejuskrishna

This comment has been minimized.

Copy link

thejuskrishna commented Jan 16, 2017

Tried to setup again on a new machine and now facing this issue:

The following build commands failed:
	CodeSign /Users/XXX/Library/Developer/Xcode/DerivedData/WebDriverAgent-hbbitlwcexlxgxfqskvhtghyhzth/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework
	CodeSign /Users/XXX/Library/Developer/Xcode/DerivedData/WebDriverAgent-hbbitlwcexlxgxfqskvhtghyhzth/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Frameworks/Peertalk.framework```
@vikramvi

This comment has been minimized.

Copy link
Contributor

vikramvi commented Jan 18, 2017

@dilsreccse @imurchie

myconfig.xcconfig
DEVELOPMENT_TEAM = 123456234234
CODE_SIGN_IDENTITY = iPhone Developer

Appium.txt
[caps]
automationName = "XCUITest"
platformName = "iOS"
app = "/Users/vikram-anna/Library/Developer/Xcode/DerivedData/Crew-ekfegdmljqnbcwhkosdznvmpdndr/Build/Products/Debug-iphoneos/Crew.app"
#deviceName random comment
deviceName = "Vikram's iPhone"
platformVersion = "10.2"
udid = "123456788"
xcodeConfigFile = "/Users/vikram-anna/../myconfig.xcconfig"

running arc command
But error is same https://gist.github.com/vikramvi/3814e9c9b797bec4440d45bd1abf6ed9

can you please clarify if I'm doing something wrong here ?

Thanks,
Vikram

@jlipps

This comment has been minimized.

Copy link
Member

jlipps commented Jan 18, 2017

@vikramvi have you tried using a signed .ipa instead of a debug .app?

@vikramvi

This comment has been minimized.

Copy link
Contributor

vikramvi commented Jan 18, 2017

@jlipps
Per https://www.youtube.com/watch?v=YKaSBwsOptw created ipa and tried again.

https://gist.github.com/vikramvi/4859c8734e5acd5f3c654fdd706ed2e8

I'm not sure if I'm missing something again

@ohadschn

This comment has been minimized.

Copy link

ohadschn commented Jan 18, 2017

@vikramvi
Where did you get your development team from?
You should take it from https://developer.apple.com/account/#/membership

@vikramvi

This comment has been minimized.

Copy link
Contributor

vikramvi commented Jan 18, 2017

@ohadschn Yes; I took value from that link itself. Is there any way to run command line script and check if myconfig.xcconfig is working fine ?

@ohadschn

This comment has been minimized.

Copy link

ohadschn commented Jan 18, 2017

@vikramvi I'm just guessing, but some things to check:

  1. Try installing the ipa to the device and using the bundleId capability (instead of app)
  2. Make sure deviceName and udid are exactly as reported by xcrun instruments -s. Specifically, I think the full device name includes the version in parentheses (don't know if related but can't hurt to try).
  3. Make sure the path to the xcconfig is absolute and contains no tokens like ~ or environment variables
@saikrishna321

This comment has been minimized.

Copy link
Member

saikrishna321 commented Jan 18, 2017

@vikramvi please install the .p12 and .cer files into your keychain and then open WebdriverAgent from xcode and select the iOS development team for all the schema and then run the WebdriverAgentRunner it should work. I have no issues running this on real devices.( I'm typing this from ma toaster machine will provide the screenshot tomorrow if needed )

@vikramvi

This comment has been minimized.

Copy link
Contributor

vikramvi commented Jan 19, 2017

@ohadschn I could get it working as below

Thanks to @saikrishna321 for his help; I could get this working with below steps

  1. Didn't change anything wrt appium.txt and myconfig.xcconfig
  2. Installed npm install app-inspector -g
  3. Goto /usr/local/lib/node_modules/app-inspector/node_modules -> webdriveragent -> WebDriverAgent -> WebDriverAgent.xcodeproj
    changed team to your apple developer account team name for all under TARGETS
  4. Installed WebDriverAgent through xcode on the test device.

After this one can uninstall app under test and WebDriverAgent. Run appium server and arc, which takes care of installing app under test and WebDriveAgent

I didn't find some of the instructions under https://github.com/appium/appium-xcuitest-driver , useful to setup

  1. Real Devices -> Configuration never worked
  2. Real device security settings -> without this as well it's working.
@dilsreccse

This comment has been minimized.

Copy link

dilsreccse commented Jan 20, 2017

@vikramvi , Even i'm facing the same issue "Real Devices -> Configuration never worked
Real device security settings -> without this as well it's working."

@vikramvi

This comment has been minimized.

Copy link
Contributor

vikramvi commented Jan 20, 2017

@dilsreccse sadly even after going through documentation multiple times, am not sure which step has fixed it. I have requested team to update documentation with more minute details and pictures so that anybody should be able to do setup 1st time without breaking head on this.

Currently there are 39 open issues on same problem, suggesting you to go through each and try out all the steps mentioned.

Can you go through each of steps mentioned in https://github.com/appium/appium-xcuitest-driver and update back here ?

@sagar3715

This comment has been minimized.

Copy link

sagar3715 commented Feb 1, 2017

hi @imurchie
sorry for asking same and same question again which everyone ask to you but following issue is not solved for me I have gone through your link [https://github.com/appium/appium-xcuitest-driver]
and follow the process my
Appium version is v1.6.3
xcode Version 8.2 (8C38)
Mac OS 10.12.2 (16C67)
//////////////////////////////////////////////
following error comes from Appium console. and inside log also I share to u below

The following build commands failed:
Check dependencies
(1 failure)

[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (../../lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (../../lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (../../lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (../../lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down Logger process (pid 11803)
[XCUITest] System log exited with code '0'
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (../../lib/webdriveragent.js:355:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (../../lib/teen_process.js:197:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
///////////////////////////////////////////////////////////////////////////
this error comes from Appium console and inside log file with created in test folder
that log also I shared you that is
//////////////////////////////////
16:35:49.605 xcodebuild[6755:109443] Beginning test session WebDriverAgentRunner-F2E37C32-0A45-41EF-A7AD-A91352CF7CB6 at 2017-02-01 16:35:49.602 with Xcode 8C38 on target <DVTiOSDevice: 0x7ffb1a8d0a80> {
deviceSerialNumber: CCQJVFG4F4K1
identifier: e87a9b25a8160f72c967ffcb6ab5d1cc1e980af3
deviceClass: iPod
deviceName: sagar's iPod touch
deviceIdentifier: e87a9b25a8160f72c967ffcb6ab5d1cc1e980af3
productVersion: 9.3.5
buildVersion: 13G36
deviceSoftwareVersion: 9.3.5 (13G36)
deviceArchitecture: armv7f
deviceTotalCapacity: 29200080896
deviceAvailableCapacity: 27113013248
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7ffb1a492720 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (9.3.5 (13G36))
16:35:49.605 xcodebuild[6755:109443] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
-project
WebDriverAgent.xcodeproj
-scheme
WebDriverAgentRunner
-destination
id=e87a9b25a8160f72c967ffcb6ab5d1cc1e980af3
test
16:35:49.606 xcodebuild[6755:109443] Launching with Xcode.IDEFoundation.Launcher.PosixSpawn
16:35:49.608 xcodebuild[6755:109443] Initializing test infrastructure.
16:35:50.738 xcodebuild[6755:109445] Creating the test bundle connection.
16:35:50.739 xcodebuild[6755:109445] Listening for proxy connection request from the test bundle (all platforms)
16:35:50.739 xcodebuild[6755:109445] Resuming the connection.
16:35:50.740 xcodebuild[6755:109445] Test connection requires daemon assistance.
16:35:50.740 xcodebuild[6755:109443] Starting test session with ID F2E37C32-0A45-41EF-A7AD-A91352CF7CB6
16:35:50.740 xcodebuild[6755:109443] Checking test manager availability..., will wait up to 120s
16:35:50.837 xcodebuild[6755:109554] testmanagerd handled session request.
16:35:50.837 xcodebuild[6755:109443] Waiting for test process to launch.
16:35:54.478 xcodebuild[6755:109443] Launch session started, setting a disallow-finish-token on the run operation.
16:35:54.877 xcodebuild[6755:109445] app uninstall set - {(
)}
16:35:54.878 xcodebuild[6755:109445] app install set - {(
DVTFilePath:0x7ffb1a803490:'/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-cakdrvkvlwehrkdinqboxcteanbt/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app'
)}
16:36:01.329 xcodebuild[6755:109446] remoteExecutable setInstalledPath:/private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app

16:36:01.331 xcodebuild[6755:109446] Updated test configuration at /var/folders/wd/cxph7trx36z6v6rtn5962yzm0000gn/T/com.apple.dt.XCTest/F2E37C32-0A45-41EF-A7AD-A91352CF7CB6/remote-container/tmp/WebDriverAgentRunner-F2E37C32-0A45-41EF-A7AD-A91352CF7CB6.xctestconfiguration with device paths: <XCTestConfiguration: 0x7ffb1a6b8920>
testBundleURL:file:///private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
testBundleRelativePath:(null)
productModuleName:WebDriverAgentRunner
testsToSkip:(null)
testsToRun:(null)
reportResultsToIDE:YES
sessionIdentifier:F2E37C32-0A45-41EF-A7AD-A91352CF7CB6
pathToXcodeReportingSocket:(null)
disablePerformanceMetrics:no
treatMissingBaselinesAsFailures:no
baselineFileURL:(null)
baselineFileRelativePath:(null)
targetApplicationPath:(null)
targetApplicationBundleID:(null)
reportActivities:YES
testsMustRunOnMainThread:YES
initializeForUITesting:YES
aggregateStatisticsBeforeCrash:{
XCSuiteRecordsKey = {
};
}

16:36:02.351 xcodebuild[6755:109446] Uploaded test configuration directory from: /var/folders/wd/cxph7trx36z6v6rtn5962yzm0000gn/T/com.apple.dt.XCTest/F2E37C32-0A45-41EF-A7AD-A91352CF7CB6/remote-container
16:36:02.352 xcodebuild[6755:109446] Updated testing environment variables {
"DTX_CONNECTION_SERVICES_PATH" = "/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework";
"DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/Frameworks:/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-cakdrvkvlwehrkdinqboxcteanbt/Build/Products/Debug-iphoneos:PLATFORMS/iPhoneOS.platform/Developer/Library/Frameworks";
"DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/Frameworks:/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-cakdrvkvlwehrkdinqboxcteanbt/Build/Products/Debug-iphoneos:PLATFORMS/iPhoneOS.platform/Developer/Library/Frameworks";
"XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA/tmp/WebDriverAgentRunner-F2E37C32-0A45-41EF-A7AD-A91352CF7CB6.xctestconfiguration";
}
16:36:02.904 xcodebuild[6755:109443] Adding console adaptor <IDEConsoleAdaptor: 0x7ffb1ad1dfd0 'target'> for test session F2E37C32-0A45-41EF-A7AD-A91352CF7CB6.
16:36:03.325 xcodebuild[6755:109443] Test process runnable PID is 461.
16:36:04.357 xcodebuild[6755:109751] Got proxy channel request from test bundle
16:36:04.357 xcodebuild[6755:109751] Test bundle is ready, running protocol 22, requires at least version 8. IDE is running 22 and requires at least 8
16:36:04.357 xcodebuild[6755:109471] Creating secondary transport and connection for whitelisting test process PID.
16:36:04.706 xcodebuild[6755:109471] Creating the daemon control connection.
16:36:04.707 xcodebuild[6755:109471] Resuming the secondary connection.
16:36:04.707 xcodebuild[6755:109471] Whitelisting test process ID 461
16:35:50.036 testmanagerd[458:72531] Launched testmanagerd from /Developer/usr/libexec/testmanagerd, built at Saturday, 20 February 2016 at 6:20:51 AM India Standard Time
16:35:50.038 testmanagerd[458:72531] Setting availability state.
16:35:50.039 testmanagerd[458:72531] Posting availability to test bundles...
16:35:50.043 testmanagerd[458:72535] IDE connected via lockdown over socket 5 (__54-[XCTestManagerIDEServer initWithLockdownServiceName:]_block_invoke)
16:35:50.044 testmanagerd[458:72535] Created session with socket 5
16:35:50.058 testmanagerd[458:72538] Handled a proxy request from the IDE with session <XCIDESession: 0x16629140> proxy <_DTXProxy: 0x16629550>
16:35:50.059 testmanagerd[458:72531] __84-[XCIDESession _IDE_initiateSessionWithIdentifier:forClient:atPath:protocolVersion:]_block_invoke <__NSConcreteUUID 0x1662b110> F2E37C32-0A45-41EF-A7AD-A91352CF7CB6 1 5 from client FF61595A-A8F3-4BF5-B1FE-CCE81F8C924D-6755-00001509A2724FE9 (/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild)
16:35:50.060 testmanagerd[458:72535] __45-[XCTestManager setIDESession:forIdentifier:]_block_invoke <XCIDESession: 0x16629140> -> <__NSConcreteUUID 0x1662b110> F2E37C32-0A45-41EF-A7AD-A91352CF7CB6
16:35:50.060 testmanagerd[458:72535] -[XCTestManager _handleRequestForSessionWithIdentifier:]
16:35:55.040 testmanagerd[458:72531] Considering exiting, 0 test sessions, 1 sessions with identifiers, 0 unidentified sessions...
16:36:03.449 testmanagerd[458:72792] Received new test session connection (-[XCTestManager listener:shouldAcceptNewConnection:])
16:36:03.456 testmanagerd[458:72531] Initial orientation 0
16:36:03.462 testmanagerd[458:72792] Test session <__NSConcreteUUID 0x1662d7d0> F2E37C32-0A45-41EF-A7AD-A91352CF7CB6 requested socket (-[XCTestSession _XCT_requestSocketForSessionIdentifier:reply:])
16:36:03.463 testmanagerd[458:72793] Test session <__NSConcreteUUID 0x1662d7d0> F2E37C32-0A45-41EF-A7AD-A91352CF7CB6 requested socket (__57-[XCTestManager requestSocketForSessionIdentifier:reply:]_block_invoke)
16:36:03.463 testmanagerd[458:72793] -[XCTestManager _handleRequestForSessionWithIdentifier:]
16:36:03.463 testmanagerd[458:72793] Closing IDE connection before sending socket 6 to test host.
16:36:03.463 testmanagerd[458:72793] -[XCIDESession closeIDEConnection:] sending barrier
16:36:03.464 testmanagerd[458:72531] barrier flushed, closing DTXConnection to IDE, socket will not be closed
16:36:03.464 testmanagerd[458:72793] Socket disconnected
16:36:03.465 testmanagerd[458:72533] __33-[XCTestManager closeIDESession:]_block_invoke <XCIDESession: 0x16629140>
16:36:03.466 testmanagerd[458:72793] Disconnecting lockdown socket
16:36:03.466 testmanagerd[458:72533] Considering exiting, 1 test sessions, 0 sessions with identifiers, 0 unidentified sessions...
16:36:03.569 testmanagerd[458:72531] Sending socket 6 to test host
16:36:03.571 testmanagerd[458:72793] __33-[XCTestManager closeIDESession:]_block_invoke <XCIDESession: 0x16629140>
16:36:03.572 testmanagerd[458:72793] Considering exiting, 1 test sessions, 0 sessions with identifiers, 0 unidentified sessions...
16:36:03.936 testmanagerd[458:72793] IDE connected via lockdown over socket 7 (__54-[XCTestManagerIDEServer initWithLockdownServiceName:]_block_invoke)
16:36:03.936 testmanagerd[458:72793] Created session with socket 7
16:36:03.944 testmanagerd[458:72793] Handled a proxy request from the IDE with session <XCIDESession: 0x166297f0> proxy <_DTXProxy: 0x1652abf0>
16:36:03.944 testmanagerd[458:72793] -[XCIDESession _IDE_initiateControlSessionForTestProcessID:protocolVersion:] 461 22
16:36:03.945 testmanagerd[458:72531] Set control session <XCIDESession: 0x166297f0> with proto 22 and proxy <_DTXProxy: 0x1652abf0>
16:36:04.763 xcodebuild[6755:109471] Got whitelisting response and daemon protocol version 16
16:36:03.390 XCTRunner[461:72752] Linked XCTest.framework from /var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest, built at Wednesday, 1 February 2017 at 4:35:52 PM India Standard Time
16:36:03.394 XCTRunner[461:72752] System uptime: 6:19:26
16:36:03.394 XCTRunner[461:72752] Process arguments: (
"/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/XCTRunner",
"-NSTreatUnknownArgumentsAsOpen",
NO,
"-ApplePersistenceIgnoreState",
YES
)
16:36:03.394 XCTRunner[461:72752] Process environment: {
"CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA";
"CFLOG_FORCE_STDERR" = YES;
CLASSIC = 1;
"DTX_CONNECTION_SERVICES_PATH" = "/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework";
"DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/Frameworks:/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-cakdrvkvlwehrkdinqboxcteanbt/Build/Products/Debug-iphoneos:PLATFORMS/iPhoneOS.platform/Developer/Library/Frameworks";
"DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5/WebDriverAgentRunner-Runner.app/Frameworks:/Users/automation/Library/Developer/Xcode/DerivedData/WebDriverAgent-cakdrvkvlwehrkdinqboxcteanbt/Build/Products/Debug-iphoneos:PLATFORMS/iPhoneOS.platform/Developer/Library/Frameworks";
FBSClientLogging = 0;
HOME = "/private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA";
LOGNAME = mobile;
NSUnbufferedIO = YES;
"OS_ACTIVITY_DT_MODE" = YES;
PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
SHELL = "/bin/sh";
TMPDIR = "/private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA/tmp";
USER = mobile;
"XCODE_DBG_XPC_EXCLUSIONS" = "com.apple.dt.xctestSymbolicator";
XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA/tmp/WebDriverAgentRunner-F2E37C32-0A45-41EF-A7AD-A91352CF7CB6.xctestconfiguration";
"XPC_FLAGS" = 0x0;
"XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner[0x66c2]";
"__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
}
16:36:03.395 XCTRunner[461:72752] Loading DTXConnectionServices from /Developer/Library/PrivateFrameworks/DTXConnectionServices.framework
16:36:03.441 XCTRunner[461:72752] Session ID <__NSConcreteUUID 0x14d690f0> F2E37C32-0A45-41EF-A7AD-A91352CF7CB6
16:36:03.442 XCTRunner[461:72752] Registering for testmanagerd availability notify post.
16:36:03.443 XCTRunner[461:72752] testmanagerd availability confirmed via notify_get_state.
16:36:03.443 XCTRunner[461:72752] Initiating connection to testmanagerd to request socket for IDE connection.
16:36:03.449 XCTRunner[461:72752] Requesting socket
16:36:03.462 XCTRunner[461:72771] Got daemon protocol version 3
16:36:03.571 XCTRunner[461:72777] Got socket 5 from daemon, making connection to IDE
16:36:03.573 XCTRunner[461:72777] Creating connection with transport
16:36:03.576 XCTRunner[461:72777] Resuming connection
16:36:03.579 XCTRunner[461:72777] Messaging IDE proxy - _XCT_testBundleReadyWithProtocolVersion:22 minimumVersion:8
16:36:04.013 XCTRunner[461:72752] -[XCTestDriver _runSuite]
16:36:04.793 xcodebuild[6755:109443] Starting test plan, clearing initialization timeout timer.
16:36:04.018 XCTRunner[461:72752] Initializing for UI testing.
16:36:04.023 XCTRunner[461:72752] Unable to set AX messaging timeout - daemon protocol version does not support this functionality.
16:36:04.026 testmanagerd[458:72794] -[XCTestManager allowUITestControlForPID:] 461 vs 461
16:36:04.037 testmanagerd[458:72794] _AXSApplicationAccessibilityEnabled() returned false
16:36:04.096 testmanagerd[458:72794] Waiting for AX to finish loading...
16:35:51.130 gputoolsd[456] schedule invalidation <DYTransport 0x17d1b880, error: lost transport connection (31)>
16:35:51.133 gputoolsd[456] terminating daemon 0x17e1cb70
16:35:55.664 installd[266] 0x1f081000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/WebDriverAgentRunner-Runner.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 268)
16:35:55.791 installd[266] 0x1f081000 -[MIInstaller performInstallationWithError:]: Installing
16:35:56.112 profiled[253] (Note ) MC: Provisioning profiles changed
16:35:56.115 profiled[253] (Note ) MC: Updating MIS trust...
16:35:56.329 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.330 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.337 installd[266] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:35:56.350 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.350 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.357 installd[266] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:35:56.621 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.621 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:35:56.627 installd[266] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:35:56.709 installd[266] 0x1f081000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.apple.test.WebDriverAgentRunner-Runner at /private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA
16:36:04.264 testmanagerd[458:72531] AX is loaded
16:35:56.722 installd[266] 0x1f081000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.apple.test.WebDriverAgentRunner-Runner at /private/var/containers/Bundle/Application/818EAB97-B78F-4086-98A3-A24804F7DBC5
16:36:04.273 testmanagerd[458:72531] AX is loaded
16:36:04.279 testmanagerd[458:72531] AX is loaded
16:36:04.282 testmanagerd[458:72531] AX is loaded
16:35:56.887 installd[266] 0x1f081000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.11s, Verifying: 0.74s; Overall: 1.20s
16:35:56.968 online-auth-agent[270] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:04.289 testmanagerd[458:72794] AXDisableAccessibilityOnTermination() returned 0
16:35:57.177 syncdefaultsd[459] (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x1552b550>
16:36:04.291 testmanagerd[458:72794] Created system wide AX element <AXUIElement 0x16633fc0> {pid=0}
16:36:04.285 testmanagerd[458:72531] AX is loaded
16:35:57.832 SpringBoard[48] Installed apps did change.
Added: {(
"com.apple.test.WebDriverAgentRunner-Runner"
)}
Removed: {(
)}
Modified: {(
)}
16:36:04.306 testmanagerd[458:72794] Added 1021 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:01.000 kernel[0] AppleKeyStore:Sending lock change 0 for handle 0
16:36:04.295 testmanagerd[458:72531] AX is loaded
16:36:04.309 testmanagerd[458:72531] AX is loaded
16:36:04.309 testmanagerd[458:72794] Added 1000 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.316 testmanagerd[458:72794] Added 1005 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.319 testmanagerd[458:72794] Added 1001 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.310 testmanagerd[458:72531] AX is loaded
16:36:04.321 testmanagerd[458:72531] AX is loaded
16:36:04.327 testmanagerd[458:72794] Added 1011 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.329 testmanagerd[458:72794] Added 4002 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.332 testmanagerd[458:72794] Added 4000 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.335 testmanagerd[458:72794] Added 4001 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:04.325 testmanagerd[458:72531] AX is loaded
16:36:01.097 UserEventAgent[23] LockStateNotifier aksNotificationCallback posting notification: com.apple.mobile.keybagd.lock_status
16:36:04.341 testmanagerd[458:72794] Added 5000 notification to <AXObserver 0x16545c40> {pid=0} for <AXUIElement 0x16633fc0> {pid=0}: 0
16:36:01.101 UserEventAgent[23] (Note ) PIH: Lock status changed.
16:36:01.000 kernel[0] AppleKeyStore:Sending lock change 0 for handle 0
16:36:04.346 testmanagerd[458:72794] Registered for AX notification 4002
16:36:04.339 testmanagerd[458:72531] AX is loaded
16:36:01.338 UserEventAgent[23] LockStateNotifier aksNotificationCallback posting notification: com.apple.mobile.keybagd.lock_status
16:36:04.354 testmanagerd[458:72531] AX is loaded
16:36:01.341 UserEventAgent[23] (Note ) PIH: Lock status changed.
16:36:04.358 testmanagerd[458:72531] AX is loaded
16:36:02.174 SpringBoard[48] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.197 SpringBoard[48] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.280 SpringBoard[48] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.328 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.328 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.333 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.346 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.346 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.351 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.000 kernel[0] xpcproxy[461] Container: /private/var/mobile/Containers/Data/Application/3B75A0C7-E44A-4AE4-8790-CF9A6BAAFEAA (sandbox)
16:36:02.582 SpringBoard[48] LICreateIconForImage passed NULL CGImageRef image
16:36:02.584 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.585 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:02.596 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:02.661 com.apple.xpc.launchd[1] assertion failed: 13G36: launchd + 85529 [083E000D-4C31-3B98-A2C4-6FADB4D1940F]: 0x3
16:36:03.108 XCTRunner[461] Running tests...
16:36:03.146 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.148 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.154 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:03.192 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.192 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.198 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:03.235 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.235 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.241 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:03.279 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.279 securityd[243] secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
16:36:03.285 amfid[283] SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
16:36:03.466 testmanagerd[458] BUG in libdispatch client: kevent[EVFILT_READ] delete: "Bad file descriptor" - 0x9
16:36:04.433 testmanagerd[458:72533] -[XCTestManager allowUITestControlForPID:] 461 vs 461
16:36:04.434 testmanagerd[458:72533] Registered for AX notification 1006
16:36:04.446 testmanagerd[458:72531] AX is loaded
16:36:04.543 testmanagerd[458:72531] AX is loaded
16:36:04.549 testmanagerd[458:72531] AX is loaded
16:36:04.556 testmanagerd[458:72794] -[XCTestManager allowUITestControlForPID:] 461 vs 461
16:36:04.559 testmanagerd[458:72794] Registered for AX notification 1021
16:36:04.679 testmanagerd[458:72794] -[XCTestManager allowUITestControlForPID:] 461 vs 461
16:36:04.680 testmanagerd[458:72794] Got request for process assertion for pid 461.
16:36:04.682 testmanagerd[458:72794] Created process assertion for pid 461: <BKSProcessAssertion: 0x16630060>, waiting for response from assertiond.
16:36:04.692 testmanagerd[458:72533] Got reply for process assertion request, success: YES
16:36:04.695 XCTRunner[461:72805] Got reply for background assertion.
16:36:04.701 XCTRunner[461:72752] Registering for UIApplicationDidEnterBackgroundNotification
16:36:04.702 XCTRunner[461:72752] Hitting home button to enter background.
16:36:04.707 testmanagerd[458:72794] -[XCTestManager allowUITestControlForPID:] 461 vs 461
16:36:04.708 testmanagerd[458:72794] Performing <XCDeviceEvent:0x1652c530 page 12 usage 64 duration 0.01s
16:36:04.718 testmanagerd[458:72794] Dispatching device event synthesis to background queue
16:36:04.721 testmanagerd[458:72793] Sleeping for 0.005000s before sending up event
16:36:04.732 testmanagerd[458:72793] Device event sent.
16:36:04.737 testmanagerd[458:72531] AX Notification 4002
16:36:04.740 XCTRunner[461:72800] Got AX notification 4002
16:36:04.740 testmanagerd[458:72531] Got user testing notification with payload {
event = ButtonEventsCompleted;
}
16:36:04.741 testmanagerd[458:72531] Device event complete, replying to client.
16:36:05.103 XCTRunner[461:72798] Got AX notification 1021
16:36:05.104 XCTRunner[461:72798] Got kAXPidStatusChangedNotification for 461: active
16:36:05.100 testmanagerd[458:72531] AX Notification 1021
16:36:05.159 testmanagerd[458:72531] AX Notification 4002
16:36:05.165 XCTRunner[461:72798] Got AX notification 4002
16:36:05.167 XCTRunner[461:72798] Got AX notification 4002
16:36:05.162 testmanagerd[458:72531] Got user testing notification with payload {
controllerClass = SBIconController;
event = ViewDidAppear;
}
16:36:05.178 XCTRunner[461:72800] Got AX notification 4002
16:36:05.163 testmanagerd[458:72531] AX Notification 4002
16:36:05.183 XCTRunner[461:72798] Got AX notification 4002
16:36:05.170 testmanagerd[458:72531] Got user testing notification with payload {
controllerClass = SBSearchViewController;
event = ViewDidAppear;
}
16:36:05.174 testmanagerd[458:72531] AX Notification 4002
16:36:05.177 testmanagerd[458:72531] Got user testing notification with payload {
controllerClass = SPUINavigationController;
event = ViewDidAppear;
}
16:36:05.181 testmanagerd[458:72531] AX Notification 4002
16:36:05.185 testmanagerd[458:72531] Got user testing notification with payload {
controllerClass = SPUISearchViewController;
event = ViewDidAppear;
}
16:36:05.356 XCTRunner[461:72752] No application process found matching pid 461, caching
16:36:05.049 XCTRunner[461] Continuing to run tests in the background with task ID 1
16:36:05.118 SpringBoard[48] LICreateIconForImage passed NULL CGImageRef image
16:36:05.593 testmanagerd[458:72531] AX Notification 1011
16:36:05.742 XCTRunner[461:72752] Got UIApplicationDidEnterBackgroundNotification
16:36:05.749 testmanagerd[458:72531] AX Notification 4002
16:36:05.752 testmanagerd[458:72531] Got user testing notification with payload {
controllerClass = SBAppContainerViewController;
event = ViewDidDisappear;
}
16:36:05.756 testmanagerd[458:72531] AX Notification 1021
16:36:05.764 XCTRunner[461:72800] Got AX notification 4002
16:36:05.768 XCTRunner[461:72800] Got AX notification 1021
16:36:05.770 XCTRunner[461:72800] Got kAXPidStatusChangedNotification for 461: suspended
16:36:05.791 XCTRunner[461:72752] Done initializing for UI testing.
16:36:05.793 XCTRunner[461:72752] Loading test suite...
16:36:05.869 XCTRunner[461:72752] Finished loading test suite, took 0.073s
16:36:05.874 XCTRunner[461:72752] -[_XCTestDriverTestObserver testBundleWillStart:]
16:36:05.875 XCTRunner[461:72752] Running suite...
2017-02-01 16:36:03.101 XCTRunner[461:72752] Running tests...
2017-02-01 16:36:05.048 XCTRunner[461:72752] Continuing to run tests in the background with task ID 1
Test Suite 'All tests' started at 2017-02-01 16:36:05.878
16:36:05.880 XCTRunner[461:72752] -[_XCTestDriverTestObserver testSuiteWillStart:]
16:36:06.661 xcodebuild[6755:109446] (LOG ARBITER) Rotating message buffer with 1 messages.
16:36:10.655 xcodebuild[6755:109471] (LOG ARBITER) Rotating message buffer with 31 messages.
16:36:13.565 xcodebuild[6755:109710] (LOG ARBITER) Rotating message buffer with 5 messages.
16:36:19.655 xcodebuild[6755:109951] (LOG ARBITER) Rotating message buffer with 29 messages.

@imurchie

This comment has been minimized.

Copy link
Member

imurchie commented Feb 8, 2017

Appium 1.6.4-beta has been released (to upgrade, run npm uninstall -g appium && npm install -g appium@beta). How we connect to devices has been significantly changed, and should be more reliable. Please try it out.

There is some documentation here, about real devices: https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md

I am closing this issue since the details will have changed completely. If you still have problems, please see if there is a similar issue, or else create a new issue with as much information as possible. We are committed to tracking down these elusive problems!

@imurchie imurchie closed this Feb 8, 2017

@AshrafRizvi01

This comment has been minimized.

Copy link

AshrafRizvi01 commented Apr 11, 2017

For Appium 1.6.X, for future, if you get this issue please follow the steps to resolve the issue:

  1. Go to your Appium folder and find appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj file or you can search for the file name.
  2. Open the file using Xcode.
  3. Select WebDriverAgentLib and In general tab select 'Automatically Manage Signing" and select an id in team dropdown (Ask your developement team to provide you the team id).
  4. Now select the next WebDriverAgentRunner and do the same thing as you did for the WebDriverAgentLib.
  5. In case you get some errors just go to the 'Build Settings' tab and change the "Product Bundle Identifier" from "com.facebook.WebDriverAgentLib" to "com.facebook.WebDriverAgentLibNew".
  6. Come back to general tab and the errors should be fixed.
  7. Now build both WebDriverAgentLib and WebDriverAgentRunner.
  8. When you get Build succeed message, run your test again.
    Hope it fixes the issue.
@vijayraw

This comment has been minimized.

Copy link

vijayraw commented May 2, 2017

admin$ appium
[Appium] Welcome to Appium v1.6.5-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}},"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},{},{"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1493709919840 (12:55:19 GMT+0530 (IST))
[Appium] Creating new XCUITestDriver (v2.27.1) session
[Appium] Capabilities:
[Appium] app: '/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa'
[Appium] noReset: true
[Appium] platformVersion: '10.3.1'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.bmsApp.com'
[Appium] xcodeConfigFile: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[Appium] udid: '15f72ab3256a9234590ee06bcf2bb9344c275efd'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'Testing'
[debug] [XCUITest] XCUITestDriver version: 2.27.1
[BaseDriver] Session created with session id: 52fcb402-8b1a-4e41-b48b-14c100d6345c
[debug] [XCUITest] Xcode version set to '8.3.1' (tools v8.2.0.0.1.1480973914)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1493709921891 (12:55:21 GMT+0530 (IST))
[debug] [XCUITest] Available devices: 15f72ab3256a9234590ee06bcf2bb9344c275efd, 15f72ab3256a9234590ee06bcf2bb9344c275efd
[debug] [XCUITest] Creating iDevice object with udid '15f72ab3256a9234590ee06bcf2bb9344c275efd'
[XCUITest] Determining device to run tests on: udid: '15f72ab3256a9234590ee06bcf2bb9344c275efd', real device: true
[BaseDriver] Using local app '/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1cx2lod.7acioirudi/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1cx2lod.7acioirudi/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1cx2lod.7acioirudi/Payload/BMSApp.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1493709928239 (12:55:28 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app '/var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1cx2lod.7acioirudi/Payload/BMSApp.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event 'resetStarted' logged at 1493709928241 (12:55:28 GMT+0530 (IST))
[debug] [XCUITest] Reset: fullReset not set. Leaving as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1493709928242 (12:55:28 GMT+0530 (IST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1493709930013 (12:55:30 GMT+0530 (IST))
[XCUITest] Setting up real device
[debug] [XCUITest] Installing '/var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1cx2lod.7acioirudi/Payload/BMSApp.app' on device with UUID '15f72ab3256a9234590ee06bcf2bb9344c275efd'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1493710019211 (12:56:59 GMT+0530 (IST))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1493710019214 (12:56:59 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using Xcode configuration file: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with 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=15f72ab3256a9234590ee06bcf2bb9344c275efd -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/C6CF3A7B-9265-4653-9EAE-FA809EF780C9/Session-WebDriverAgentRunner-2017-05-02_125710-VmsqOh.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-05-02 12:57:18.920 xcodebuild[28731:2863689] 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-02 12:57:18.427731+0530 XCTRunner[256:11978] Running tests...
[Xcode] 2017-05-02 12:57:19.015849+0530 XCTRunner[256:12093] Connection peer refused channel request for "dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface"; channel canceled <DTXChannel: 0x15e7fe90>
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1493710039008 (12:57:19 GMT+0530 (IST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 28730)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1493710050394 (12:57:30 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using Xcode configuration file: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with 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=15f72ab3256a9234590ee06bcf2bb9344c275efd -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9A3C84F3-4330-4F40-AF07-1459F166CFBF/Session-WebDriverAgentRunner-2017-05-02_125738-sOQ7cH.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-05-02 12:57:46.008 xcodebuild[28761:2864446] 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-02 12:57:45.538537+0530 XCTRunner[260:12439] Running tests...
[Xcode] 2017-05-02 12:57:46.079360+0530 XCTRunner[260:12471] Connection peer refused channel request for "dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface"; channel canceled <DTXChannel: 0x14569840>
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1493710066027 (12:57:46 GMT+0530 (IST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 28760)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 157433 ms - 230
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1493710077290 (12:57:57 GMT+0530 (IST))
[Appium] Creating new XCUITestDriver (v2.27.1) session
[Appium] Capabilities:
[Appium] app: '/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa'
[Appium] noReset: true
[Appium] platformVersion: '10.3.1'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.bmsApp.com'
[Appium] xcodeConfigFile: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[Appium] udid: '15f72ab3256a9234590ee06bcf2bb9344c275efd'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'Testing'
[debug] [XCUITest] XCUITestDriver version: 2.27.1
[BaseDriver] Session created with session id: 7b544c3b-9ae6-4659-bc47-edc9df826996
[debug] [XCUITest] Xcode version set to '8.3.1' (tools v8.2.0.0.1.1480973914)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1493710078513 (12:57:58 GMT+0530 (IST))
[debug] [XCUITest] Available devices: 15f72ab3256a9234590ee06bcf2bb9344c275efd, 15f72ab3256a9234590ee06bcf2bb9344c275efd
[debug] [XCUITest] Creating iDevice object with udid '15f72ab3256a9234590ee06bcf2bb9344c275efd'
[XCUITest] Determining device to run tests on: udid: '15f72ab3256a9234590ee06bcf2bb9344c275efd', real device: true
[BaseDriver] Using local app '/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1dkqet5.w6qs62yb9/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1dkqet5.w6qs62yb9/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1dkqet5.w6qs62yb9/Payload/BMSApp.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1493710081601 (12:58:01 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app '/var/folders/2v/zx0hpr554s7_21_p2qhfpg000000gs/T/201742-28695-1dkqet5.w6qs62yb9/Payload/BMSApp.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [BaseDriver] Event 'resetStarted' logged at 1493710081602 (12:58:01 GMT+0530 (IST))
[debug] [XCUITest] Reset: fullReset not set. Leaving as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1493710081602 (12:58:01 GMT+0530 (IST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1493710082179 (12:58:02 GMT+0530 (IST))
[XCUITest] Setting up real device
[debug] [XCUITest] App 'com.bmsApp.com' is already installed. No need to reinstall.
[debug] [BaseDriver] Event 'appInstalled' logged at 1493710083045 (12:58:03 GMT+0530 (IST))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1493710083046 (12:58:03 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using Xcode configuration file: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with 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=15f72ab3256a9234590ee06bcf2bb9344c275efd -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/717FECFB-6C7D-4D5D-971A-D376C5F557A0/Session-WebDriverAgentRunner-2017-05-02_125814-fwKK7j.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-05-02 12:58:21.961 xcodebuild[28798:2865206] 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-02 12:58:21.499065+0530 XCTRunner[264:12859] Running tests...
[Xcode] 2017-05-02 12:58:22.054870+0530 XCTRunner[264:12886] Connection peer refused channel request for "dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface"; channel canceled <DTXChannel: 0x16db5f20>
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1493710101979 (12:58:21 GMT+0530 (IST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 28797)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1493710113229 (12:58:33 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using Xcode configuration file: '/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with 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=15f72ab3256a9234590ee06bcf2bb9344c275efd -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3 -xcconfig /Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9B37FE0C-891D-42A0-8C28-493E3BB5F3E1/Session-WebDriverAgentRunner-2017-05-02_125842-Uo0ND5.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-05-02 12:58:49.857 xcodebuild[28827:2865917] 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-02 12:58:49.389582+0530 XCTRunner[268:13267] Running tests...
[Xcode] 2017-05-02 12:58:49.914399+0530 XCTRunner[268:13285] Connection peer refused channel request for "dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface"; channel canceled <DTXChannel: 0x16e91fd0>
[Xcode]
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1493710129876 (12:58:49 GMT+0530 (IST))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down iproxy process (pid 28826)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:373:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 63615 ms - 230
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [null,null,{"desiredCapabilities":{"app":"/Users/admin/Desktop/BMSAppBuild/BMSApp.ipa","noReset":true,"platformVersion":"10.3.1","automationName":"XCUITest","bundleId":"com.bmsApp.com","xcodeConfigFile":"/Users/admin/Data/xxx/WebDriverAgent/Config.xcconfig","udid":"15f72ab3256a9234590ee06bcf2bb9344c275efd","platformName":"iOS","deviceName":"Testing"},"requiredCapabilities":{}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1493710140915 (12:59:00 GMT+0530 (IST))
[MJSONWP] Encountered internal error running command: Error: You must include a platformName capability
at AppiumDriver.getDriverForCaps (../../lib/appium.js:44:13)
at AppiumDriver.createSession$ (../../lib/appium.js:157:28)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at AppiumDriver.createSession (../../lib/appium.js:183:31)
at ../../../lib/basedriver/driver.js:207:24
at tryCatcher (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (/usr/local/lib/node_modules/appium/node_modules/bluebird/js/main/async.js:15:14)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
[HTTP] <-- POST /wd/hub/session 500 7 ms - 179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment