Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detox 12.10.2 does not works with last applesimutils version #1518

Closed
Tyki opened this issue Jul 10, 2019 · 2 comments
Closed

Detox 12.10.2 does not works with last applesimutils version #1518

Tyki opened this issue Jul 10, 2019 · 2 comments

Comments

@Tyki
Copy link

Tyki commented Jul 10, 2019

Description

The repository applesimutils has been upgrade to version 0.7.0 forcing installation of applesimutils to this version.

The thing is, applesimutils 0.6.8+ removed the cli option "simulator" used by Detox during the "detox test -c xx.xx.xx.xx"

Steps to Reproduce

Install Detox 12.10.2
Install applesimutils 0.7.0
Constat error running test

detox[34116] ERROR: [exec.js/EXEC_FAIL, #5] "applesimutils --simulator BC76AEF2-17CA-4BDA-86D1-800A728E425C --bundle [BundleName] --restartSB --setPermissions notifications=YES,camera=YES,medialibrary=YES,photos=YES,microphone=YES" failed with code = 253, stdout and stderr:

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 12.10.2
  • React Native: 0.59.8
  • Node:8
  • Device:
  • Xcode:11
  • macOS: Mojabe

Device and verbose Detox logs

detox[34116] INFO:  [DetoxServer.js] server listening on localhost:53511...
detox[34116] ERROR: [exec.js/EXEC_FAIL, #5] "applesimutils --simulator BC76AEF2-17CA-4BDA-86D1-800A728E425C --bundle kaliop.biogen.fr.cleo --restartSB --setPermissions notifications=YES,camera=YES,medialibrary=YES,photos=YES,microphone=YES" failed with code = 253, stdout and stderr:
detox[34116] ERROR: [exec.js/EXEC_FAIL, #5] A collection of utils for Apple simulators.

Usage Examples:
    applesimutils --byId <simulator UDID> --bundle <bundle identifier> --setPermissions "<permission1>, <permission2>, ..."
    applesimutils --byName <simulator name> --byOS <simulator OS> --bundle <bundle identifier> --setPermissions "<permission1>, <permission2>, ..."
    applesimutils --list [--byName <simulator name>] [--byOS <simulator OS>] [--byType <simulator device type>] [--maxResults <int>]
    applesimutils --byId <simulator UDID> --biometricEnrollment <YES/NO>
    applesimutils --byId <simulator UDID> --matchFace

Options:
    --byId                       Filters simulators by unique device identifier (UDID)
    --byName                     Filters simulators by name
    --byType                     Filters simulators by device type
    --byOS                       Filters simulators by operating system
    --list                       Lists available simulators
    --setPermissions             Sets the specified permissions and restarts SpringBoard for the changes to take effect
    --clearKeychain              Clears the simulator's keychain
    --restartSB                  Restarts SpringBoard
    --biometricEnrollment        Enables or disables biometric (Face ID/Touch ID) enrollment.
    --matchFace                  Approves Face ID authentication request with a matching face
    --unmatchFace                Fails Face ID authentication request with a non-matching face
    --matchFinger                Approves Touch ID authentication request with a matching finger
    --unmatchFinger              Fails Touch ID authentication request with a non-matching finger
    --bundle                     The app bundle identifier
    --maxResults                 Limits the number of results returned from --list
    --version, -v                Prints version
    --help, -h                   Prints usage

Do we have a workaround to modify the call to applesimutils cli or a possibility to install older versions of applesimutils?
I tried to install old version : brew install [email protected]

Without success

@LeoNatan
Copy link
Contributor

Upgrade Detox or use brew install https://raw.githubusercontent.com/wix/homebrew-brew/3e0f0157a3824bbfe84fbaaddc1ebce621703be9/applesimutils.rb to install applesimutils 0.6.7

@support
Copy link

support bot commented Jul 10, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.

For more information on bots in this reporsitory, read this discussion.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants