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

dev installation on OS X #483

Closed
Crash-- opened this issue Jan 2, 2018 · 2 comments
Closed

dev installation on OS X #483

Crash-- opened this issue Jan 2, 2018 · 2 comments

Comments

@Crash--
Copy link
Contributor

Crash-- commented Jan 2, 2018

Description

Since I've a few issues testing my Android APP on bitrise with detox, I decided to build it on my own in order to get some logs.

Steps to Reproduce

I cloned the repo and then :

npm install -g lerna detox-cli react-native-cli 
gem install xcpretty
npm install github:wix/detox
cd node_modules/detox
git submodule update --init --recursive
scripts/bootstrap.sh

And the issue begins:
scripts/build.sh: line 7: ios/EarlGrey/Scripts/setup-earlgrey.sh: No such file or directory

I've no ios/ folder in detox/ and no Detox-ios-src.tbz

Detox, Node, Device, Xcode and macOS Versions

  • Detox: Current master
  • Node: 7.6.0
  • Device:
  • Xcode: Xcode 9.2
  • macOS:

Device and verbose Detox logs

scripts/bootstrap.sh
lerna info version 2.5.1
lerna info Bootstrapping 8 packages
lerna info lifecycle preinstall
lerna info Symlinking packages and binaries
lerna info lifecycle postinstall
lerna info lifecycle prepublish
lerna ERR! execute Error occured with 'detox' while running 'npm run prepublish'
lerna ERR! npm run prepublish [detox] Output from stdout:

> [email protected] prepublish /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox
> npm run build


> [email protected] build /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox
> scripts/build.sh


Packaging Detox iOS sources

lerna ERR! npm run prepublish [detox] Output from stderr:
scripts/build.sh: line 7: ios/EarlGrey/Scripts/setup-earlgrey.sh: No such file or directory

npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/node" "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/npm" "run" "build"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `scripts/build.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'scripts/build.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the detox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     scripts/build.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs detox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls detox
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox/npm-debug.log

npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/node" "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/npm" "run" "prepublish"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prepublish: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the detox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs detox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls detox
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox/npm-debug.log

lerna ERR! execute Error occured with 'detox' while running 'npm run prepublish'
(node:64742) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Command failed: npm run prepublish
scripts/build.sh: line 7: ios/EarlGrey/Scripts/setup-earlgrey.sh: No such file or directory

npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/node" "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/npm" "run" "build"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `scripts/build.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'scripts/build.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the detox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     scripts/build.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs detox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls detox
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox/npm-debug.log

npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/node" "/Users/quentinvalmori/.nvm/versions/node/v7.6.0/bin/npm" "run" "prepublish"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prepublish: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the detox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs detox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls detox
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox/npm-debug.log

> [email protected] prepublish /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox
> npm run build


> [email protected] build /Users/quentinvalmori/Sites/BugRNInTeach/Webapp3/node_modules/detox/detox
> scripts/build.sh


Packaging Detox iOS sources

(node:64742) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@LeoNatan
Copy link
Contributor

LeoNatan commented Jan 4, 2018

You are attempting to use dev build steps with production Detox, and that won’t work. Instead, use Detox CLI or call build_framework.ios.sh directly.

@LeoNatan LeoNatan closed this as completed Jan 4, 2018
@LeoNatan
Copy link
Contributor

LeoNatan commented Jan 4, 2018

Also, please use Stack Overflow for these kind of questions. This is not an issue with Detox but support question.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
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