Hi,
I am getting following error while running ios simulator -
[debug] [XCUITest] Installing app '/Users/imac5kteststation/Documents/testView_App/testView.app' on device
[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] Running WebDriverAgent bootstrap script to install dependencies
[XCUITest] Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
at ChildProcess. (../../lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)
{ Error: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1
at ChildProcess. (../../lib/teen_process.js:66:19)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)
stdout: '\u001b[1mFetching dependencies\n*** Downloading KissXML.framework binary at "5.0.5"\n',
stderr: 'Failed to write to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “iOS” in the folder “Build”." UserInfo={NSFilePath=/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage/Build/iOS, NSUnderlyingError=0x7fc9a543b4a0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}\n',
code: 1 }
[XCUITest] Shutting down sub-processes
[debug] [XCUITest] Running iOS simulator reset flow
Desired Capabilities --
DesiredCapabilities cap = new DesiredCapabilities();
File app = new File("/Users/imac5k/Documents/testView_App/testView.app");
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.0");
cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
cap.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 7 Plus");
cap.setCapability(MobileCapabilityType.AUTOMATION_NAME,"XCUITest");
cap.setCapability(MobileCapabilityType.BROWSER_NAME, "");
cap.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
IOSDriver driver = new IOSDriver(new URL("http://14.122.34.333:4723/wd/hub"),cap);
Could anyone tell what is the issue here?