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

unable to install detox 9.0.4 with XCode 10.1 #1145

Closed
garfieldnate opened this issue Feb 6, 2019 · 3 comments
Closed

unable to install detox 9.0.4 with XCode 10.1 #1145

garfieldnate opened this issue Feb 6, 2019 · 3 comments

Comments

@garfieldnate
Copy link

Description

As far as I can tell, the problem is exactly the same as #913. However, that issue was closed as "fixed" and the discussion thread there is closed.

Steps to Reproduce

yarn add detox@9.0.4

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 9.0.4
  • Node: 11.6.0
  • Device: Macbook Pro 2015
  • Xcode: 10.1
  • macOS: 10.14.2 (Mojave)

Device and verbose Detox logs

Printed during installation:

$ yarn add detox@9.0.4
yarn add v1.12.3
[1/4] 🔍  Resolving packages...
warning rxdb > express-pouchdb > pouchdb-replicator > random-uuid-v4 > jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
[2/4] 🚚  Fetching packages...
info @expo/ngrok-bin-darwin-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-darwin-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-freebsd-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-arm64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm64@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-ia32@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-linux-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-linux-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-sunos-x64@2.2.8: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-sunos-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-win32-ia32@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-win32-x64@2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "@expo/ngrok-bin-win32-x64@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗  Linking dependencies...
warning "expo > react-native-maps@0.21.0" has incorrect peer dependency "react-native@^0.51 || ^0.52 || ^0.53 || ^0.54".
warning "expo > react-native-web-maps@0.1.0" has unmet peer dependency "react-native-web@*".
warning "expo > react-native-web-maps > react-google-maps@7.3.0" has incorrect peer dependency "react@15.5.4".
warning "expo > react-native-web-maps > react-google-maps@7.3.0" has unmet peer dependency "react-dom@15.5.4".
warning "expo > react-native-web-maps > react-google-maps > react-prop-types-element-of-type@2.2.0" has incorrect peer dependency "react@^0.14.6 || ^15.0.0-0".
warning "react-native > eslint-plugin-react-native@3.3.0" has unmet peer dependency "eslint@^3.17.0 || ^4 || ^5".
warning "jest-expo > babel-jest@22.4.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[4/4] 📃  Building fresh packages...
[-/3] ⠠ waiting...
[3/3] ⠠ detox
error /Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox: Command failed.
Exit code: 1
Command: node scripts/postinstall.js
Arguments:
Directory: /Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox
Output:
+ xcodebuild -version
+++ dirname /Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox/scripts/build_framework.ios.sh
++ dirname /Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox/scripts
+ detoxRootPath=/Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox
++ node -p 'require('\''/Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox/package.json'\'').version'
+ detoxVersion=9.0.4
++ echo 9.0.4
++ xcodebuild -version
++ shasum
++ awk '{print $1}'
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
  Referenced from: /usr/local/bin/awk
  Reason: image not found
+ sha1=
child_process.js:643
    throw err;
    ^

Error: Command failed: /Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox/scripts/build_framework.ios.sh
    at checkExecSyncError (child_process.js:622:11)
    at Object.execFileSync (child_process.js:640:13)
    at Object.<anonymous> (/Users/nglenn/dev/workspaces/web_workspace/rxdb/examples/react-native/node_modules/detox/scripts/postinstall.js:2:27)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)

The folder ~/Library/Detox did not exist, so I do not have a log file to provide.

@rotemmiz
Copy link
Member

rotemmiz commented Feb 7, 2019

We use Xcode 10.1 for testing Detox in CI, I suggest you try latest Detox (10.x.x) and check if the issue persists.

@LeoNatan
Copy link
Contributor

LeoNatan commented Feb 8, 2019

I have no idea what "/usr/local/opt/readline/lib/libreadline.7.dylib" is. The detox script uses awk and yours seems broken. This is unrelated to Detox.

@garfieldnate
Copy link
Author

Thanks. Just needed to brew upgrade gawk.

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

No branches or pull requests

3 participants