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
[iOS] Build Fails when Scheme is set to Release #4210
Comments
Anyone else ran into this? |
I have the same issue. No errors with Debug, 2 errors in Release schema |
Getting this as well. No errors running in debug mode but have this error on release along with error "linker command failed with exit code 1 (use -v to see invocation)" in React Native 0.17 |
Ok I had dead code stripping enabled to solve a previous error. But with this version, disabling it corrects these other errors and it builds successfully. |
same issue as well... |
I just hit this issue as well. After disabling dead code stripping (per @hasen6's comment), the build completed successfully. Here's how I disabled it:
This is just a workaround, but hopefully helpful if you're also hitting this. |
@mattcollins Nice! |
I ran into the same issue and had to disable dead code stripping, too. |
I found a solution to the problem in the comments for a previous issue: I believe this issue can be closed as a duplicate. |
@facebook-github-bot duplicate #2685 |
@janicduplessis tells me this issue is a duplicate of #2685. Let's discuss there, closing this one. |
@mattcollins Your solution doesn't seem to work on 0.29.0. I've also noticed that Facebook changed the docs for building app for production. |
HI, I tried the dead code stripping and add libReact.a to TESTS, both of them are not working for me. Have anyone had the same problem? |
Yes I have same problem
Please anyone tell me solution.. |
If you're trying to run a release scheme on a device/sim, this can also be fixed by editing your scheme:
This way the tests aren't run when running for release, as the dead code has been stripped. |
Just changed the Scheme to Release based o the hint about disabling debug menu:
https://facebook.github.io/react-native/docs/debugging.html#debugging-react-native-apps
I get this error now with 0.14.2
The text was updated successfully, but these errors were encountered: