-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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_Detox build builds react in release mode #73
Comments
One discussed solution is to add Debug_Detox configuration to React.xcodeproj. This solution does not scale and requires to have RN specific code in the deployment script, which I will not add (Detox is not only for RN projects). A potential "solution" is to iterate all sub projects and add those configurations, but I don't like this either - it modifies projects which the user has not connected to (What if the user has native open source projects? What if projects from submodules?). e2e is intended for release checking. CC @talkol |
Another solution is to run Detox from a test target, like proper native tests (& Earl Grey), but that would require major changes. |
@LeoNatan can we somehow swizzle Xcode's configuration BEFORE the build to be |
@LeoNatan I did manage to inject things to stop the script when compiling, and I managed to also inject all needed |
Xcode picks configuration in a peculiar way, and I was unable to find a way to inject which configuration to pick for building a sub project. |
because apple. |
Maybe running it with |
I don't think that solves the packager problem. |
The packager can be stopped by injecting into the xcode |
@DanielZlotin Inject how? I don't want to assume RN in the Ruby deployment script. It is a generic script that deploys into a target project. All other operations in it are moot. For instance, if a user feels they need to run tests on their debug version, they can comment out the packager script in their RN project locally themselves. |
It's a script we can provide through npm |
Running this script when? At Detox deployment time? Deployment happens once. However when RN is updated through |
@DanielZlotin Hmm the script above uses a "$NODE_BINARY". We could use that with a fake node that does not package. |
Fixed with 99e5a89. |
When building the app in dev mode it compiles react in release mode. This is a serious issue.
The text was updated successfully, but these errors were encountered: