Hi, I am getting following error at the time of run in appium with xcode for IOS simulator.
Appium Log:
2017-04-22 12:53:05:808 - info: [Appium] Welcome to Appium v1.6.4
2017-04-22 12:53:05:829 - info: [Appium] Non-default server args:
2017-04-22 12:53:05:829 - info: [Appium] log: /Users/pradipray/Desktop/Appium_Log/1.log
2017-04-22 12:53:05:857 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2017-04-22 12:55:33:828 - info: [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app",“platformName”:“iOS”,“deviceName”:“iPhone 7”,“platformVersion”:“10.2”}}
2017-04-22 12:55:33:848 - info: [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app",“platformName”:“iOS”,“deviceName”:“iPhone 7”,“platformVersion”:“10.2”},null,null,null,null]
2017-04-22 12:55:33:851 - info: [debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1492865733851 (18:25:33 GMT+0530 (IST))
2017-04-22 12:55:33:858 - info: [Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
2017-04-22 12:55:33:860 - info: [Appium] Creating new XCUITestDriver (v2.27.2) session
2017-04-22 12:55:33:860 - info: [Appium] Capabilities:
2017-04-22 12:55:33:863 - info: [Appium] app: ‘/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app’
2017-04-22 12:55:33:864 - info: [Appium] platformName: ‘iOS’
2017-04-22 12:55:33:864 - info: [Appium] deviceName: ‘iPhone 7’
2017-04-22 12:55:33:864 - info: [Appium] platformVersion: ‘10.2’
2017-04-22 12:55:33:868 - info: [debug] [XCUITest] XCUITestDriver version: 2.27.2
2017-04-22 12:55:33:878 - info: [BaseDriver] Session created with session id: 94e21f78-a61c-48a5-bfe1-9f3d7155896d
2017-04-22 12:55:35:504 - info: [debug] [XCUITest] Xcode version set to ‘8.2.1’ (tools v8.2.0.0.1.1480973914)
2017-04-22 12:55:35:505 - info: [debug] [XCUITest] iOS SDK Version set to ‘10.2’
2017-04-22 12:55:35:506 - info: [debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1492865735506 (18:25:35 GMT+0530 (IST))
2017-04-22 12:55:36:268 - info: [iOSSim] Constructing iOS simulator for Xcode version 8.2.1 with udid ‘21CE65A2-31E0-4C0B-A753-830F5987CC9A’
2017-04-22 12:55:36:270 - info: [XCUITest] Determining device to run tests on: udid: ‘21CE65A2-31E0-4C0B-A753-830F5987CC9A’, real device: false
2017-04-22 12:55:36:271 - info: [BaseDriver] Using local app ‘/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app’
2017-04-22 12:55:36:272 - info: [debug] [BaseDriver] Event ‘appConfigured’ logged at 1492865736272 (18:25:36 GMT+0530 (IST))
2017-04-22 12:55:36:272 - info: [debug] [XCUITest] Checking whether app ‘/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app’ is actually present on file system
2017-04-22 12:55:36:274 - info: [debug] [XCUITest] App is present
2017-04-22 12:55:36:275 - info: [debug] [iOS] Getting bundle ID from app ‘/Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app’: ‘edu.pradip.com-CalculatorDemo4’
2017-04-22 12:55:36:276 - info: [debug] [BaseDriver] Event ‘resetStarted’ logged at 1492865736275 (18:25:36 GMT+0530 (IST))
2017-04-22 12:55:36:433 - info: [XCUITest] Not scrubbing third party app in anticipation of uninstall
2017-04-22 12:55:36:433 - info: [debug] [BaseDriver] Event ‘resetComplete’ logged at 1492865736433 (18:25:36 GMT+0530 (IST))
2017-04-22 12:55:36:509 - info: [debug] [iOSLog] Starting iOS 10.2 simulator log capture
2017-04-22 12:55:36:510 - info: [debug] [iOSLog] System log path: /Users/pradipray/Library/Logs/CoreSimulator/21CE65A2-31E0-4C0B-A753-830F5987CC9A/system.log
2017-04-22 12:55:36:585 - info: [debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1492865736585 (18:25:36 GMT+0530 (IST))
2017-04-22 12:55:36:586 - info: [XCUITest] Setting up simulator
2017-04-22 12:55:36:587 - info: [debug] [iOS] No reason to set locale
2017-04-22 12:55:36:588 - info: [debug] [iOS] No iOS / app preferences to set
2017-04-22 12:55:36:758 - info: [XCUITest] Simulator with udid ‘21CE65A2-31E0-4C0B-A753-830F5987CC9A’ already booted
2017-04-22 12:55:36:759 - info: [debug] [BaseDriver] Event ‘simStarted’ logged at 1492865736759 (18:25:36 GMT+0530 (IST))
2017-04-22 12:55:36:822 - info: [debug] [XCUITest] Reset requested. Removing app with id ‘edu.pradip.com-CalculatorDemo4’ from the device
2017-04-22 12:55:37:389 - info: [debug] [XCUITest] Installing /Users/pradipray/Library/Developer/Xcode/DerivedData/com.CalculatorDemo4-edbrcuothpbzebdcqczedqdwjkvu/Build/Products/Debug-iphonesimulator/com.CalculatorDemo4.app on Simulator with UUID ‘21CE65A2-31E0-4C0B-A753-830F5987CC9A’…
2017-04-22 12:55:43:941 - info: [debug] [XCUITest] The app has been installed successfully.
2017-04-22 12:55:43:971 - info: [debug] [BaseDriver] Event ‘appInstalled’ logged at 1492865743942 (18:25:43 GMT+0530 (IST))
2017-04-22 12:55:43:977 - info: [debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1492865743976 (18:25:43 GMT+0530 (IST))
2017-04-22 12:55:43:978 - info: [XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
2017-04-22 12:55:43:978 - info: [XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
2017-04-22 12:55:43:980 - info: [XCUITest] Launching WebDriverAgent on the device
2017-04-22 12:55:43:994 - warn: [XCUITest] Carthage not found. Install using brew install carthage
2017-04-22 12:55:43:996 - info: [debug] [XCUITest] Running WebDriverAgent bootstrap script to install dependencies
2017-04-22 12:55:44:132 - error: [XCUITest] Fetching dependencies
2017-04-22 12:55:44:133 - error: [XCUITest] Please make sure that you have Carthage installed
2017-04-22 12:55:44:133 - error: [XCUITest] Note: We are expecting that carthage installed in /usr/local/bin/
2017-04-22 12:55:44:138 - info: [debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1492865744138 (18:25:44 GMT+0530 (IST))
2017-04-22 12:55:44:138 - info: [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
2017-04-22 12:55:44:139 - info: [debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
2017-04-22 12:55:44:140 - info: [XCUITest] Shutting down sub-processes
2017-04-22 12:55:44:141 - info: [debug] [XCUITest] Removing WDA application from device
2017-04-22 12:55:54:557 - info: [debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1492865754557 (18:25:54 GMT+0530 (IST))
2017-04-22 12:55:54:558 - info: [XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
2017-04-22 12:55:54:558 - info: [XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
2017-04-22 12:55:54:558 - info: [XCUITest] Launching WebDriverAgent on the device
2017-04-22 12:55:54:561 - warn: [XCUITest] Carthage not found. Install using brew install carthage
2017-04-22 12:55:54:562 - info: [debug] [XCUITest] Running WebDriverAgent bootstrap script to install dependencies
2017-04-22 12:55:54:572 - error: [XCUITest] Fetching dependencies
2017-04-22 12:55:54:572 - error: [XCUITest] Please make sure that you have Carthage installed
2017-04-22 12:55:54:573 - error: [XCUITest] Note: We are expecting that carthage installed in /usr/local/bin/
2017-04-22 12:55:54:574 - info: [debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1492865754574 (18:25:54 GMT+0530 (IST))
2017-04-22 12:55:54:574 - info: [debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
2017-04-22 12:55:54:575 - info: [debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
2017-04-22 12:55:54:575 - info: [XCUITest] Shutting down sub-processes
2017-04-22 12:55:54:575 - info: [debug] [XCUITest] Removing WDA application from device
2017-04-22 12:56:04:708 - error: [XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.(/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype(/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2017-04-22 12:56:04:710 - info: [debug] [XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
2017-04-22 12:56:04:711 - info: [debug] [iOSLog] Stopping iOS log capture
2017-04-22 12:56:04:718 - error: [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘Scripts/bootstrap.sh -d’ exited with code 1
at XCUITestDriver.quitAndUninstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:374:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
(/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2017-04-22 12:56:04:724 - info: [HTTP] <-- POST /wd/hub/session 500 30897 ms - 252