simctl error running 'install': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:13
Top GitHub Comments
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 memoryThen 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.