Hi Ser,
Kindly look to the Appium log
[10] 16799
[9] Terminated: 15 appium
deepika:app-automation Deepi$ (node:16799) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[Appium] Welcome to Appium v1.6.0 (REV 8d64b6a02d78811f50d5f747ce10df09d54b4791)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“appium-version”:“6.0”,“xcodeConfigfile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.1”,“bundleId”:“com.mcclatchy.phoenix-reader”,“automationName”:“XCUITest”,“platformName”:“iOS”,“udid”:“4d81b59befbd4e9067b3e382e6f120e839fd88f0”,“deviceName”:“iPad Air 2”}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appium-version”:“6.0”,"x…
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] appium-version: ‘6.0’
[Appium] xcodeConfigfile: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig’
[Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
[Appium] platformVersion: ‘9.3.1’
[Appium] bundleId: ‘com.mcclatchy.phoenix-reader’
[Appium] automationName: ‘XCUITest’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘4d81b59befbd4e9067b3e382e6f120e839fd88f0’
[Appium] deviceName: ‘iPad Air 2’
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, xcodeConfigfile.
[BaseDriver] Session created with session id: 7bfc5062-adb7-4578-8300-f73cc8bfdee8
[debug] [XCUITest] Xcode version set to ‘8.0’
[debug] [XCUITest] iOS SDK Version set to ‘10.0’
[debug] [XCUITest] Available devices: 4d81b59befbd4e9067b3e382e6f120e839fd88f0
[debug] [XCUITest] Creating iDevice object with udid 4d81b59befbd4e9067b3e382e6f120e839fd88f0
[XCUITest] Determining device to run tests on: udid: ‘4d81b59befbd4e9067b3e382e6f120e839fd88f0’, real device: true
[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 4d81b59befbd4e9067b3e382e6f120e839fd88f0 --bundle_id com.mcclatchy.phoenix-reader’ exited with code 255
[debug] [XCUITest] App is not installed. Will try to install.
[debug] [XCUITest] Real device specified but no ipa or app path, assuming bundle ID is on device
[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] 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=4d81b59befbd4e9067b3e382e6f120e839fd88f0’ 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/vijaygvb/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/656E7B9C-8F80-4AE6-9205-57F0A6679A01/Session-WebDriverAgentRunner-2016-11-04_170007-zhm1qI.log
[debug] [WebDriverAgent] Device: Nov 4 17:00:10 wipros-iPad XCTRunner[516] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad XCTRunner[516] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[Xcode] 2016-11-04 17:00:38.244 xcodebuild[16811:460895] 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}
[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad XCTRunner[516] : (dlopen_preflight(/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad SpringBoard[55] : BSXPCMessage received error for message: Connection invalid
[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-11-04 17:00:10.876 XCTRunner[516:100432] Running tests…
2016-11-04 17:00:18.349 XCTRunner[516:100432] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-11-04 17:00:18.350 XCTRunner[516:100432] (dlopen_preflight(/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/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] System log exited with code ‘null’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[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=4d81b59befbd4e9067b3e382e6f120e839fd88f0’ 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/vijaygvb/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/C6735AC7-EB95-4C06-AD05-BAEF9D4F1737/Session-WebDriverAgentRunner-2016-11-04_170043-hor0Vo.log
[Xcode] 2016-11-04 17:00:50.364 xcodebuild[17090:461646] 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] 2016-11-04 17:00:30.424 XCTRunner[519:100928] Running tests…
2016-11-04 17:00:30.474 XCTRunner[519:100928] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-11-04 17:00:30.474 XCTRunner[519:100928] (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/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. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 56409 ms - 167
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Looking for test bundles in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Found test bundle at /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Looking for configurations in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : No configurations found, creating a default configuration that will run all tests.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad kernel[0] : AMFI: XCTRunner(pid 521) - [deny-mmap] mapped executable file has no team identifier in its signature: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad amfid[188] : /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Looking for test bundles in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Found test bundle at /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Looking for configurations in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : No configurations found, creating a default configuration that will run all tests.
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…