@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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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
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.
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 **
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 [email protected]
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-
devicesIf I try
xcodebuild \
-project'/WebDriverAgent.xcodeproj \
-scheme WebDriverAgentRunner \
-sdk iphoneos \
-destination platform=iOS,id=\
CODE_SIGN_IDENTITY=iPhone Developer \
CODE_SIGNING_REQUIRED=YES \
testI 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
https://github.com/appium/appium/issues/6867#issuecomment-248995053, 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)
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]
Looks like we have to do the same for KissXML.
On Fri, Sep 23, 2016 at 3:43 AM, Nathan Greeney [email protected]
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 XCTRunner395:195517[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 XCTRunner399:195815[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
https://github.com/appium/appium/issues/6867#issuecomment-249043531, 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)
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...
> [email protected] 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
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)
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.
I think it was mainly due to having old version of app. -d was part of build.sh you ran.
Hi @imurchie
i'm getting the below mentioned error, with reference to this https://github.com/appium/appium-xcuitest-driver/issues/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.
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess.
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.
at emitTwo (events.js:87:13)
at SubProcess.emit (events.js:172:7)
at ChildProcess.
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
@dilsreccse Did you sign both WebDriverAgentLib and WebDriverAgentRunner in Xcode? With your team profile?
@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

@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 ?
@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.
@ngreeney : Select a development team for WebDriverAgentRunner in the project editor. where is it available ?
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.
@imurchie
When i run the test in simulator and device,app is keep on opening and closing.
@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.
ok thanks
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.
@imurchie & @ngreeney - It worked & i was able to launch my application on the device thank you :)
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?
@LiudasTumasonis Is your provisioning profile wildcard?
@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:

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...
What are your desired capabilities?
@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
@imurchie yes provisioning profile is wild card.
@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.
Yes. As of yet we have no figured out how to set the location using the new system. This is not crashing on launch. It is returning an error when you try to set the location. These are different things altogether.
On running the command, I get error saying Unable to find destination as shown below
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=XXXXXXXXXXXXXXXXXXXXXXXXXXX' test
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX }
Unsupported device specifier option.
The device “My Mac” does not support the following options: id
Please supply only supported device specifier options.
Ineligible destinations for the "WebDriverAgentRunner" scheme:
{ platform:iOS, id:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, name:iPhone, error:iPhone is not available. You can see iPhone’s console log and other details in the Devices window. }
@thejuskrishna What is the udid you are specifying for? It looks like it is for your computer, not your phone. I can get the same output by doing that.
Hi @imurchie , I have masked the udid in the comment. The udid that I gave is correct. Is there any dependency on Xcode version for XCUITest?
Xcode version must be 7.3 (if testing iOS 9.3) or 8 (if testing iOS 10 or 9.3).
You phone doesn't seem to be available to xcode. Can you open up Xcode and make sure that your device is there and available?
@ngreeney I signed everything but my app is not opening, webdriverAgent opened for a 1 second and closed. App downloaded but not starting, do you know what could I check? Thanks
@mikhailpractice you should open a new ticket with all the required info and someone might be able to help you. With what you have provided here, it could be a million reasons.
Thanks @imurchie ! My XCode version was 7.3 and I had to upgrade to Sierra for XCode 8. Going to run the test.
@ngreeney @imurchie
when trying to sign with my apple it as personal team. webdriveragentrunner does not like that. But the webdriveragentlib is fine. Are we expected to change the bundle identifier here ?
@rkavalap You must not have a wildcard provision on your Apple Dev personal team then.
@ngreeney This is what i see currently.


@rkavalap Hi Rahul, can you paste the error logs? I think there are 4 projects to which we have to add Team details.
@rkavalap You need a wildcard App ID under your teams provisioning profile. Apple has changed a lot of how it gets created but if you go to developer.apple.com you should find one with just a * under App IDs. I had to add one for my team:

@ngreeney So after changing the bundle identifier to com.my.WebDriverRunner in build settings in xcode editor, app installed on my device. I am not a member of apple developer program i.e 99$ fee is not paid by me. What ever you described may only appear for participants of apple developer program. My screen looks like below. I tried enrolling and stopped until when it asked my credit card information. AFAIK, for any app to be installed from source, one did not require to pay 99$ fee.

Unsure how to get that wild card added then. I'm guessing there is a way in
xcode but I don't know how.
On Nov 16, 2016 8:57 AM, "Rahul Kavalapara" [email protected]
wrote:
@ngreeney https://github.com/ngreeney So after changing the bundle
identifier to com.my.WebDriverRunner in build settings in xcode editor, app
installed on my device. I am not a member of apple developer program i.e
99$ fee is not paid by me. What ever you described may only appear for
participants of apple developer program. My screen looks like below. I
tried enrolling and stopped until when it asked my credit card information.
AFAIK, for any app to be installed from source, one did not require to pay
99$ fee.
[image: appledeveloper]
https://cloud.githubusercontent.com/assets/80310/20354063/cd7eb0d4-abd1-11e6-9645-2dfe261a8f67.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/appium/appium/issues/6867#issuecomment-260983789, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAUv96fAd6ZQ-dRGPMiaj6-VKmgIy2Unks5q-yfegaJpZM4KB2w2
.
I don't think it is possible to install on real devices without joining Apple Developer program.
In Xcode you do not need to be a member of the paid program (You need an Apple Id, that is all). Go into Preferences -> Accounts, and add your Apple ID. Then see the details, and it should automatically make a personal team wildcard profile for development.
@imurchie Upon adding apple id, it creates a personal team. I didn't see a provisioning profile even thought a certificate was generated when i clicked view details. There is no provisioning profile which can be used against com.facebook.WebDirverAgentRunner. If you saw my previous screenshot above there is an error for WebDriverAgentRunner. Once the bundle identifier is changed in build settings to
Interesting. Xcode ought to be able to handle it, either through the team specified in the xcconfig file, or through automatically managing it through xcode.
im getting below error , after providing the deveper account details and tried to start the session
[debug] [XCUITest] App is already installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[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 real device logger 'idevicesyslog'
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=195df3686c29350babb04c7c628571a08c142363 --xcode-version 8' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[XCUITest] The real device logger 'idevicesyslog' was unable to start log capture. Please try installing 'deviceconsole' ('npm install -g deviceconsole') and specify the path to it using the 'realDeviceLogger' capability.
[debug] [XCUITest] Log file for xcodebuild test: /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/112BE721-22DE-451A-BAC3-62688E95B035/Session-WebDriverAgentRunner-2016-11-16_165908-rJPtwI.log
[Xcode] 2016-11-16 16:59:13.010 xcodebuild[8599:151202] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/112BE721-22DE-451A-BAC3-62688E95B035/Session-WebDriverAgentRunner-2016-11-16_165908-rJPtwI.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/112BE721-22DE-451A-BAC3-62688E95B035/Session-WebDriverAgentRunner-2016-11-16_165908-rJPtwI.log}
[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
[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.1'
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.1'
[Xcode] Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
[Xcode]
[Xcode]
Testing failed:
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.1'
[Xcode] ** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code '0'
[debug] [XCUITest] Removing WDA application from device
[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 '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=195df3686c29350babb04c7c628571a08c142363 --xcode-version 8' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[XCUITest] The real device logger 'idevicesyslog' was unable to start log capture. Please try installing 'deviceconsole' ('npm install -g deviceconsole') and specify the path to it using the 'realDeviceLogger' capability.
[debug] [XCUITest] Log file for xcodebuild test: /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/47C35F56-F00E-4BE8-A78B-BDCF5C59934B/Session-WebDriverAgentRunner-2016-11-16_165918-JkzenX.log
[Xcode] 2016-11-16 16:59:22.657 xcodebuild[8857:151637] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/47C35F56-F00E-4BE8-A78B-BDCF5C59934B/Session-WebDriverAgentRunner-2016-11-16_165918-JkzenX.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/cigniti_apasunoori/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/47C35F56-F00E-4BE8-A78B-BDCF5C59934B/Session-WebDriverAgentRunner-2016-11-16_165918-JkzenX.log}
[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.1'
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.1'
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
[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.1'
** 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.<anonymous> (../../lib/webdriveragent.js:326:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (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.<anonymous> (../../lib/webdriveragent.js:326:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (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] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
(node:8565) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Can't stop process; it's not currently running
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess.<anonymous> (../../lib/webdriveragent.js:326:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.<anonymous> (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)
@anand853 Without the full logs (use a gist, it's less obtrusive in the issue) it's hard to tell what is going on or what the configuration is.
Hi, here is my issue:
I'm running Appium against one .ipa file.
I have 2 machines:
Machine 01: Development machine, with and Apple ID registered in the Developer Program.
Machine 02: A machine only to run tests. No Apple ID at all but XCode 8 installed.
So, I have XCode installed in this test machine (Machine 02), but there's no developer account on it and I don't have plans to add one to this machine.
I can see that the Team ID is missing from:
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
And to test in my developer machine (Machine 01), I did update the "WebDriverAgent.xcodeproj" with my Team ID and it did work fine. Awesome!
BUT...
In the test machine the build fails with:
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.1'
Signing for "WebDriverAgentRunner" requires a development team
NOTE: I have created a xconfig file and placed it in the App that I wanna test, then generated the .ipa.
So, where should I place the .xconfig file:
1 - In the "WebDriverAgent.xcodeproj" ?
OR
2 - in the "MyDummyApp.xcodeproj" ?
Thank you!
@wilsolutions The xcode config file is for signing the WebDriverAgent application that is used for automating the device. It can exist anywhere you would like, as long as it is on the machine that Appium is running on. Then the path is specified using the xcodeConfigFile desired capability.
Is it required to have the app bundle ID and Bundle ID for WebDriverAgent to be same .. I have a app which is build with a different BundleID (Created by my company developer account ) and I have my own personal apple account with which i am signing the WebDriverAgentRunner . So will this mismatch cause a problem ? Or is the account and bundleId for signing WebDriverAgentRunner is not dependent on the actual app bundle Id and apple account with which it has been signed ??
Guys make sure you are signing the project for WebDriverAgent.xcodeproj in /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/ . Dont just download the project to desktop or download folder and try to sign the project .
After installing appium-xcuitest-driver in your system . go to this location /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/ and sign .. this is where appium terminal command pics the WebDriverAgentRunner and build it .
Hi,
Im using appium 1.6.1-beta and ios 10 i had the same issues,
issue solved by adding apple developer account and all works fine.
but when im trying to connect the machine in ssh and run the script it return the same error
[Xcode]
Testing failed:
Command /usr/bin/codesign failed with exit code 1
* TEST FAILED *
[Xcode]
The following build commands failed:
CodeSign /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/IntegrationApp.app
(1 failure)
appium log:
[Appium] Welcome to Appium v1.6.1-beta
[Appium] Non-default server args:
[Appium] log: '/Users/israellocal/Desktop/Shared/automation_test/logs/ios_2016_11_22_19_00_05_800020.txt'
[Appium] fullReset: true
[Appium] showIOSLog: true
[Appium] Deprecated server args:
[Appium] --full-reset => --default-capabilities '{"fullReset":true}'
[Appium] --show-ios-log => --default-capabilities '{"showIOSLog":true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] fullReset: true
[Appium] showIOSLog: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.1-beta","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 19 ms - 88
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"iPhone 10.0.1","udid":"4ba95a2da3af6869344047620c1755dd23cdbc57","automationName":"XCUITest","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","appium-version":"1.6","xcodeConfigFile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig","newCommandTimeout":0,"platformVersion":"10.0.1","platformName":"ios","app":"/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone 10.0.1","udid":"4ba95a2da3af6869344047620c1755dd23cdbc57","automationName":"XCUITest","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","appium-version":"1.6","xcodeConfigFile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig","newCommandTimeout":0,"platformVersion":"10.0.1","platformName":"ios","app":"/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone 10.0.1'
[Appium] udid: '4ba95a2da3af6869344047620c1755dd23cdbc57'
[Appium] automationName: 'XCUITest'
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] appium-version: '1.6'
[Appium] xcodeConfigFile: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[Appium] newCommandTimeout: 0
[Appium] platformVersion: '10.0.1'
[Appium] platformName: 'ios'
[Appium] app: '/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa'
[Appium] fullReset: true
[Appium] showIOSLog: true
[debug] [XCUITest] XCUITestDriver version: 2.0.34
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
[BaseDriver] Session created with session id: 7b4e8b42-ffb7-4667-b3fe-1efc78fc15a3
[debug] [XCUITest] Xcode version set to '8.1'
[debug] [XCUITest] iOS SDK Version set to '10.1'
[debug] [XCUITest] Available devices: 4ba95a2da3af6869344047620c1755dd23cdbc57
[debug] [XCUITest] Creating iDevice object with udid 4ba95a2da3af6869344047620c1755dd23cdbc57
[XCUITest] Determining device to run tests on: udid: '4ba95a2da3af6869344047620c1755dd23cdbc57', real device: true
[BaseDriver] Using local app '/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-79839-trvtw2.yfulx9wwmi/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-79839-trvtw2.yfulx9wwmi/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-79839-trvtw2.yfulx9wwmi/Payload/PingID-Test.app'
[debug] [XCUITest] Checking whether app '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-79839-trvtw2.yfulx9wwmi/Payload/PingID-Test.app' is actually present
[debug] [XCUITest] App is present
[debug] [ios-app-utils] Getting bundle ID from app '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-79839-trvtw2.yfulx9wwmi/Payload/PingID-Test.app': 'com.pingidentity.pingid.testEnterprise'
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[debug] [XCUITest] App is already installed.
[debug] [XCUITest] Full reset requested. Forcing app install after uninstall app
[debug] [XCUITest] App installed successfully.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/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] Killing hanging processes
[debug] [XCUITest] Using real device logger '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[debug] [XCUITest] Using Xcode configuration file: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4ba95a2da3af6869344047620c1755dd23cdbc57 --xcode-config-file "/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig"' in directory '/usr/local/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/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/8EBACEB1-B8AF-4C91-BE8D-1D1D30620FF6/Session-WebDriverAgentRunner-2016-11-22_190023-fKaT2Y.log
[Xcode] 2016-11-22 19:00:29.335 xcodebuild[79876:17204027] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/8EBACEB1-B8AF-4C91-BE8D-1D1D30620FF6/Session-WebDriverAgentRunner-2016-11-22_190023-fKaT2Y.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/8EBACEB1-B8AF-4C91-BE8D-1D1D30620FF6/Session-WebDriverAgentRunner-2016-11-22_190023-fKaT2Y.log}
[Xcode]
Testing failed:
Command /usr/bin/codesign failed with exit code 1
* TEST FAILED *
The following build commands failed:
CodeSign /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/IntegrationApp.app
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code 'null'
[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 '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[debug] [XCUITest] Using Xcode configuration file: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4ba95a2da3af6869344047620c1755dd23cdbc57 --xcode-config-file "/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig"' in directory '/usr/local/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/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADCD87D-BBEA-4317-8459-D21CBECE5A1B/Session-WebDriverAgentRunner-2016-11-22_190036-i4u4WS.log
[Xcode] 2016-11-22 19:00:42.927 xcodebuild[80162:17204625] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADCD87D-BBEA-4317-8459-D21CBECE5A1B/Session-WebDriverAgentRunner-2016-11-22_190036-i4u4WS.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADCD87D-BBEA-4317-8459-D21CBECE5A1B/Session-WebDriverAgentRunner-2016-11-22_190036-i4u4WS.log}
[Xcode]
Testing failed:
Command /usr/bin/codesign failed with exit code 1
* TEST FAILED *
[Xcode]
The following build commands failed:
CodeSign /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/IntegrationApp.app
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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 'null'
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Full reset requested. Will try to uninstall the app 'com.pingidentity.pingid.testEnterprise'.
[debug] [XCUITest] Removed 'com.pingidentity.pingid.testEnterprise'
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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 35151 ms - 167
[Appium] Received SIGTERM - shutting down
[Appium] Welcome to Appium v1.6.1-beta
[Appium] Non-default server args:
[Appium] log: '/Users/israellocal/Desktop/Shared/automation_test/logs/ios_2016_11_22_19_00_48_406625.txt'
[Appium] fullReset: true
[Appium] showIOSLog: true
[Appium] Deprecated server args:
[Appium] --full-reset => --default-capabilities '{"fullReset":true}'
[Appium] --show-ios-log => --default-capabilities '{"showIOSLog":true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] fullReset: true
[Appium] showIOSLog: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.1-beta","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 18 ms - 88
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"iPhone 10.0.1","udid":"4ba95a2da3af6869344047620c1755dd23cdbc57","automationName":"XCUITest","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","appium-version":"1.6","xcodeConfigFile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig","newCommandTimeout":0,"platformVersion":"10.0.1","platformName":"ios","app":"/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone 10.0.1","udid":"4ba95a2da3af6869344047620c1755dd23cdbc57","automationName":"XCUITest","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","appium-version":"1.6","xcodeConfigFile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig","newCommandTimeout":0,"platformVersion":"10.0.1","platformName":"ios","app":"/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone 10.0.1'
[Appium] udid: '4ba95a2da3af6869344047620c1755dd23cdbc57'
[Appium] automationName: 'XCUITest'
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] appium-version: '1.6'
[Appium] xcodeConfigFile: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[Appium] newCommandTimeout: 0
[Appium] platformVersion: '10.0.1'
[Appium] platformName: 'ios'
[Appium] app: '/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa'
[Appium] fullReset: true
[Appium] showIOSLog: true
[debug] [XCUITest] XCUITestDriver version: 2.0.34
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version.
[BaseDriver] Session created with session id: 5c3c243e-003f-4a0d-b1d9-ba8ba77c6cc4
[debug] [XCUITest] Xcode version set to '8.1'
[debug] [XCUITest] iOS SDK Version set to '10.1'
[debug] [XCUITest] Available devices: 4ba95a2da3af6869344047620c1755dd23cdbc57
[debug] [XCUITest] Creating iDevice object with udid 4ba95a2da3af6869344047620c1755dd23cdbc57
[XCUITest] Determining device to run tests on: udid: '4ba95a2da3af6869344047620c1755dd23cdbc57', real device: true
[BaseDriver] Using local app '/Users/israellocal/Desktop/Shared/automation_test/pingid.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-80435-1n7714p.ph07m34n29/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-80435-1n7714p.ph07m34n29/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-80435-1n7714p.ph07m34n29/Payload/PingID-Test.app'
[debug] [XCUITest] Checking whether app '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-80435-1n7714p.ph07m34n29/Payload/PingID-Test.app' is actually present
[debug] [XCUITest] App is present
[debug] [ios-app-utils] Getting bundle ID from app '/var/folders/x7/g459t3xs3nz99lmm86jwvx140000gp/T/20161022-80435-1n7714p.ph07m34n29/Payload/PingID-Test.app': 'com.pingidentity.pingid.testEnterprise'
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[debug] [XCUITest] Error checking install status: Command 'ios-deploy --exists --id 4ba95a2da3af6869344047620c1755dd23cdbc57 --bundle_id com.pingidentity.pingid.testEnterprise' exited with code 255
[debug] [XCUITest] App is not installed. Will try to install.
[debug] [XCUITest] App installed successfully.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/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] Killing hanging processes
[debug] [XCUITest] Using real device logger '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[debug] [XCUITest] Using Xcode configuration file: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4ba95a2da3af6869344047620c1755dd23cdbc57 --xcode-config-file "/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig"' in directory '/usr/local/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/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/A3C72C05-34D1-4621-AA1E-C4BAE845053E/Session-WebDriverAgentRunner-2016-11-22_190107-PvzC1d.log
[Xcode] 2016-11-22 19:01:13.488 xcodebuild[80471:17205530] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/A3C72C05-34D1-4621-AA1E-C4BAE845053E/Session-WebDriverAgentRunner-2016-11-22_190107-PvzC1d.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/A3C72C05-34D1-4621-AA1E-C4BAE845053E/Session-WebDriverAgentRunner-2016-11-22_190107-PvzC1d.log}
[Xcode]
Testing failed:
Command /usr/bin/codesign failed with exit code 1
* TEST FAILED *
The following build commands failed:
CodeSign /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/IntegrationApp.app
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying...
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code 'null'
[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 '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[debug] [XCUITest] Using Xcode configuration file: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig'
[debug] [XCUITest] Beginning test with command '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4ba95a2da3af6869344047620c1755dd23cdbc57 --xcode-config-file "/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig"' in directory '/usr/local/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/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADC79CB-E0C6-4A6F-9E0F-729FFECF3886/Session-WebDriverAgentRunner-2016-11-22_190120-lChUFc.log
[Xcode] 2016-11-22 19:01:26.858 xcodebuild[80757:17206123] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADC79CB-E0C6-4A6F-9E0F-729FFECF3886/Session-WebDriverAgentRunner-2016-11-22_190120-lChUFc.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/AADC79CB-E0C6-4A6F-9E0F-729FFECF3886/Session-WebDriverAgentRunner-2016-11-22_190120-lChUFc.log}
[Xcode]
Testing failed:
Command /usr/bin/codesign failed with exit code 1
* TEST FAILED *
The following build commands failed:
CodeSign /Users/israellocal/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/IntegrationApp.app
(1 failure)
[XCUITest] xcodebuild exited with code '65' and signal 'null'
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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 'null'
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Full reset requested. Will try to uninstall the app 'com.pingidentity.pingid.testEnterprise'.
[debug] [XCUITest] Removed 'com.pingidentity.pingid.testEnterprise'
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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 34980 ms - 167
[Appium] Received SIGTERM - shutting down
[Appium] Received SIGINT - shutting down
@ngreeney I have failed with same issue:
Fetching dependencies
Building Inspector
Creating bundle directory...
Fetching Inspector dependencies...
npm WARN [email protected] requires a peer of react@>=0.14.0 but none was installed.
npm WARN [email protected] No repository field.
Building Inspector...
[email protected] build /usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector
webpack --progress --colors
Hash: 9ed7d0b85cc08341fd0f
Version: webpack 1.14.0
Time: 86ms
[0] multi main 28 bytes {0} [built] [1 error]
+ 1 hidden modules
ERROR in ./js/app.js
Module parse failed: /usr/local/lib/node_modules/appium/node_modules/.2.4.3@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 (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp$3.parseExprAtom (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1692:19)
at Parser.pp$3.parseExprOps (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1597:21)
at Parser.pp$3.parseParenAndDistinguishExpression (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1861:32)
at Parser.pp$3.parseExprAtom (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1796:19)
at Parser.pp$3.parseExprSubscripts (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1692:19)
at Parser.pp$3.parseExprOps (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1597:21)
at Parser.pp$3.parseExpression (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1573:21)
at Parser.pp$1.parseReturnStatement (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:839:33)
at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:699:34)
at Parser.pp$1.parseBlock (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:981:25)
at Parser.pp$3.parseFunctionBody (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:2105:24)
at Parser.pp$3.parseMethod (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:2075:10)
at Parser.pp$1.parseClassMethod (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1137:25)
at Parser.pp$1.parseClass (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:1118:14)
at Parser.pp$1.parseStatement (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:697:19)
at Parser.pp$1.parseTopLevel (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:638:25)
at Parser.parse (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:516:17)
at Object.parse (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/acorn/dist/acorn.js:3098:39)
at Parser.parse (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/webpack/lib/Parser.js:902:15)
at NormalModule.
at NormalModule.onModuleBuild (/usr/local/lib/node_modules/appium/node_modules/.2.4.3@appium-xcuitest-driver/WebDriverAgent/Inspector/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
@ multi main
Done
Have you solve it?
@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.
@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 ?
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.
Yeah, the error would happen when begin to building inspector, I try to delete Inspector/node_modules, but it would be created again.
That should be fixed, then, since the -d options excludes the Inspector.
@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?
I don't know anything about Maven. But however you pass in desired capabilities, you should be able to send the xcodeConfigFile capability.
@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.
I do not know. This would be better asked on https://discuss.appium.io/
Thank you for your quick response. I will ask there.
@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'
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
@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 = "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
@vikramvi have you tried using a signed .ipa instead of a debug .app?
@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
@vikramvi
Where did you get your development team from?
You should take it from https://developer.apple.com/account/#/membership
@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 ?
@vikramvi I'm just guessing, but some things to check:
bundleId capability (instead of app)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).~ or environment variables@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 )
@ohadschn I could get it working as below
Thanks to @saikrishna321 for his help; I could get this working with below steps
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
@vikramvi , Even i'm facing the same issue "Real Devices -> Configuration never worked
Real device security settings -> without this as well it's working."
@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 ?
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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.
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess.
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
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:
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 - {(
)}
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:
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
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
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
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
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
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
16:36:03.944 testmanagerd[458:72793] -[XCIDESession _IDE_initiateControlSessionForTestProcessID:protocolVersion:] 461 22
16:36:03.945 testmanagerd[458:72531] Set control session
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
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
16:36:04.291 testmanagerd[458:72794] Created system wide AX element
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
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
16:36:04.316 testmanagerd[458:72794] Added 1005 notification to
16:36:04.319 testmanagerd[458:72794] Added 1001 notification to
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
16:36:04.329 testmanagerd[458:72794] Added 4002 notification to
16:36:04.332 testmanagerd[458:72794] Added 4000 notification to
16:36:04.335 testmanagerd[458:72794] Added 4001 notification to
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
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:
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
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.
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!
For Appium 1.6.X, for future, if you get this issue please follow the steps to resolve the issue:
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
[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
[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:100: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:100: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:100: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
[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
[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:100: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:100: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:100: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:100: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:100: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
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
For all looking at this, we have added the ability to configure signing through an
xcconfigfile, which needs to have an entry forThe 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 thexcodeConfigFiledesired capability.