question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simctl error running 'install': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)

See original GitHub issue

The problem To Friday I was can run app in simulater with appium, yesterday I updated MacOS 10.13.4 (17E199) and Xcode 9.3, after that I get errors.

Environment

Appium version (or git revision) that exhibits the issue: Version 1.5.0 (1.5.0)(I loaded last version) Mobile platform/version under test: IPhone 6 Real device or emulator/simulator: iOS Simulator Appium CLI or Appium.app: Details Appium Logs: [simctl] Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [simctl] Failed to install the requested application [simctl] An application bundle was not found at the provided path. [simctl] Provide a valid path to the desired application bundle. [simctl] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [simctl] at simCommand$ (…/…/lib/simctl.js:50:11) [simctl] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [simctl] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [simctl] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [simctl] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [simctl] at [XCUITest] Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [XCUITest] Failed to install the requested application [XCUITest] An application bundle was not found at the provided path. [XCUITest] Provide a valid path to the desired application bundle. [XCUITest] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [XCUITest] at simCommand$ (…/…/lib/simctl.js:50:11) [XCUITest] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [XCUITest] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [XCUITest] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [XCUITest] at [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on. [iOSLog] Stopping iOS log capture [MJSONWP] Encountered internal error running command: Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [MJSONWP] Failed to install the requested application [MJSONWP] An application bundle was not found at the provided path. [MJSONWP] Provide a valid path to the desired application bundle. [MJSONWP] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [MJSONWP] at simCommand$ (…/…/lib/simctl.js:50:11) [MJSONWP] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [MJSONWP] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [MJSONWP] at [HTTP] <-- POST /wd/hub/session 500 39343 ms - 414 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {“desiredCapabilities”:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
R0xyLanacommented, Nov 19, 2018

The problem To Friday I was can run app in simulater with appium, yesterday I updated MacOS 10.13.4 (17E199) and Xcode 9.3, after that I get errors.

Environment

Appium version (or git revision) that exhibits the issue: Version 1.5.0 (1.5.0)(I loaded last version) Mobile platform/version under test: IPhone 6 Real device or emulator/simulator: iOS Simulator Appium CLI or Appium.app: Details Appium Logs: [simctl] Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [simctl] Failed to install the requested application [simctl] An application bundle was not found at the provided path. [simctl] Provide a valid path to the desired application bundle. [simctl] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [simctl] at simCommand$ (…/…/lib/simctl.js:50:11) [simctl] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [simctl] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [simctl] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [simctl] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [simctl] at [XCUITest] Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [XCUITest] Failed to install the requested application [XCUITest] An application bundle was not found at the provided path. [XCUITest] Provide a valid path to the desired application bundle. [XCUITest] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [XCUITest] at simCommand$ (…/…/lib/simctl.js:50:11) [XCUITest] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [XCUITest] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [XCUITest] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [XCUITest] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [XCUITest] at [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on. [iOSLog] Stopping iOS log capture [MJSONWP] Encountered internal error running command: Error: simctl error running ‘install’: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): [MJSONWP] Failed to install the requested application [MJSONWP] An application bundle was not found at the provided path. [MJSONWP] Provide a valid path to the desired application bundle. [MJSONWP] at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:78:13) [MJSONWP] at simCommand$ (…/…/lib/simctl.js:50:11) [MJSONWP] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:67:40) [MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:315:22) [MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js💯21) [MJSONWP] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/node-simctl/node_modules/babel-runtime/regenerator/runtime.js:136:37) [MJSONWP] at [HTTP] <-- POST /wd/hub/session 500 39343 ms - 414 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {“desiredCapabilities”:

Good Morning, I had same issue, solution is obvious and easy - we need to clean up memory of simulator. When you open iOS simulator, then Hardware -> Erase all contents and settings Seems like, this issue occurs because of incorrect clean of device memory

1reaction
mykola-mokhnachcommented, Apr 3, 2018

Then you either provide an incorrect application path in capabilities, the application bundle itself is broken or Xcode deployment on the particular machine is broken. In any case this error has nothing to do with Appium itself.

closing as not an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An error was encountered processing the command (domain ...
Error running 'get_app_container': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn't be completed.
Read more >
Can't install .app on simulator via command line - Stack Overflow
Error message: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application ...
Read more >
Can't lunch the app by command line - Katalon Community
Original error: simctl error running 'install': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Read more >
simctl not working in Xcode 7.0 an… | Apple Developer Forums
$ xcrun simctl install $DEVICE $PATH An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested ...
Read more >
an error was encountered processing the command (domain ...
an error was encountered processing the command (domain=nsposixerrordomain, code=2): failed to install the requested application an application bundle was ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found