Hi, I’m working on a hybrid App (Ionic) and the App does not launch in the simulator, my code is:
const wdio = require('webdriverio');
const opts = {
port: 4723,
desiredCapabilities: {
platformName: "iOS",
platformVersion: "11.2",
deviceName: "iPhone Simulator",
app: '/path-to-app/nxe.app',
automationName: "XCUITest",
autoWebview: true
}
};
const client = wdio.remote(opts);
client.init();
client
.contexts().then(function (contexts) {
return client.context(contexts[1]);
})
.click("#signin")
I get the 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$ (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:375:13)
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 51220 ms - 257
Whats the problem please?