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 not working with react native v0.51 #478

Closed
leonidez opened this issue Dec 28, 2017 · 2 comments
Closed

Detox not working with react native v0.51 #478

leonidez opened this issue Dec 28, 2017 · 2 comments

Comments

@leonidez
Copy link

Description

Can you confirm which versions of react-native are currently supported? Installing detox per the guidelines against react-native v0.51 leads to a runtime error. Per other Detox issues I've cleared Derived Data, erased all contents and settings from the simulator, and I run the packager using watchman watch-del-all && react-native start --reset-cache. My current setup works fine when building the app for development, only issue is running detox test

Steps to Reproduce

Detox, Node, Device, Xcode and macOS Versions

  • Detox: "^6.0.4"
  • Node: 8.1.0
  • Device: iPhone 7 (simulator)
  • Xcode: 9.2
  • macOS: Sierra 10.12.6

I am also using "mocha": "^4.0.1",

Device and verbose Detox logs

tail -F $HOME/Library/Developer/CoreSimulator/Devices/C68C8CEE-A5C5-44C2-880C-EF4DCCBB5542/data/tmp/detox.last_launch_app_log.err
2017-12-28 11:07:23.202 RubyApp[55764:6862948] Crash handler setup completed.
2017-12-28 11:07:23.202 RubyApp[55764:6862948] Enabling accessibility for automation on Simulator.
2017-12-28 11:07:24.470 [info][tid:main][RCTCxxBridge.mm:187] Initializing <RCTCxxBridge: 0x6040007afce0> (parent: <RCTBridge: 0x6000002ac600>, executor: (null))
2017-12-28 11:07:24.485 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2017-12-28 11:07:24.530 [info][tid:main][RCTRootView.m:301] Running application RubyApp ({
    initialProps =     {
    };
    rootTag = 1;
})
2017-12-28 11:07:24.561 RubyApp[55764:6862948] card.io: Camera support only available on armv7(s) architecture -- can't use camera
2017-12-28 11:08:12.521 [error][tid:com.facebook.react.JavaScript] undefined is not an object (evaluating 'nativeVersion.major')
2017-12-28 11:08:12.530 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
2017-12-28 11:08:12.531 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 'nativeVersion.major')
WARNING: Logging before InitGoogleLogging() is written to STDERR
E1228 11:08:12.563653 119291904 JSCHelpers.cpp:106] Got JS Exception: undefined is not an object (evaluating 'nativeVersion.major') (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:11889)
E1228 11:08:12.564076 119291904 JSCHelpers.cpp:112] Got JS Stack: checkVersions@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:11889:57
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:11047:40
loadModuleImplementation@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:127:12
guardedLoadModule@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:79:45
global code@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:134058:9
2017-12-28 11:08:12.566 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
2017-12-28 11:08:12.567 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
E1228 11:08:12.570044 119291904 JSCHelpers.cpp:106] Got JS Exception: Exception calling object as function: Module AppRegistry is not a registered callable module (calling runApplication) (<unknown file>:4508)
E1228 11:08:12.570148 119291904 JSCHelpers.cpp:112] Got JS Stack: invariant@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4508:24
__callFunction@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4970:16
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4801:29
__guard@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4943:11
callFunctionReturnFlushedQueue@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4800:19
callFunctionReturnFlushedQueue@[native code]
2017-12-28 11:08:12.571 [error][tid:com.facebook.react.JavaScript] Module RCTDeviceEventEmitter is not a registered callable module (calling emit)
2017-12-28 11:08:12.571 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
E1228 11:08:12.574465 119291904 JSCHelpers.cpp:106] Got JS Exception: Exception calling object as function: Module RCTDeviceEventEmitter is not a registered callable module (calling emit) (<unknown file>:4508)
E1228 11:08:12.574599 119291904 JSCHelpers.cpp:112] Got JS Stack: invariant@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4508:24
__callFunction@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4970:16
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4801:29
__guard@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4943:11
callFunctionReturnFlushedQueue@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4800:19
callFunctionReturnFlushedQueue@[native code]
2017-12-28 11:08:12.575 [error][tid:com.facebook.react.JavaScript] Module RCTDeviceEventEmitter is not a registered callable module (calling emit)
2017-12-28 11:08:12.576 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
E1228 11:08:12.580207 119291904 JSCHelpers.cpp:106] Got JS Exception: Exception calling object as function: Module RCTDeviceEventEmitter is not a registered callable module (calling emit) (<unknown file>:4508)
E1228 11:08:12.580448 119291904 JSCHelpers.cpp:112] Got JS Stack: invariant@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4508:24
__callFunction@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4970:16
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4801:29
__guard@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4943:11
callFunctionReturnFlushedQueue@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4800:19
callFunctionReturnFlushedQueue@[native code]
2017-12-28 11:08:12.584 [error][tid:com.facebook.react.JavaScript] Module RCTDeviceEventEmitter is not a registered callable module (calling emit)
2017-12-28 11:08:12.585 [info][tid:com.facebook.react.JavaScript] 'Failed to print error: ', 'Can\'t find variable: regeneratorRuntime'
E1228 11:08:12.588546 119291904 JSCHelpers.cpp:106] Got JS Exception: Exception calling object as function: Module RCTDeviceEventEmitter is not a registered callable module (calling emit) (<unknown file>:4508)
E1228 11:08:12.588709 119291904 JSCHelpers.cpp:112] Got JS Stack: invariant@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4508:24
__callFunction@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4970:16
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4801:29
__guard@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4943:11
callFunctionReturnFlushedQueue@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:4800:19
callFunctionReturnFlushedQueue@[native code]
2017-12-28 11:08:12.684 [fatal][tid:main] Unhandled JS Exception: undefined is not an object (evaluating 'nativeVersion.major') (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:11889)
^C

Thank you.

@rotemmiz
Copy link
Member

rotemmiz commented Jan 8, 2018

Does the app work when running without Detox ? Try running the already installed app on your simulator (the one installed by Detox), does it crash ?

@no-response
Copy link

no-response bot commented Mar 7, 2018

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@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

3 participants