-
Notifications
You must be signed in to change notification settings - Fork 658
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
GeneratedInfoPlistDotEnv.h
file not found and iOS command not working
#216
Comments
So, I was able to fix this without actually downgrading. This assumes you've followed the iOS Setup instructions to the dot at the time of me writing this. Assumptions:
To fix:
Also make sure your e.g.
|
I'm having the same problem Config:
But in my case, neither |
Same problem here |
@gyss , @prathammehta Manual linking did it for me. I'm also using |
@pdoggi since this repo looks like is no longer maintained I'm going to go with my own solution. It's safer for now. |
@pdoggi thanks! Manual linking worked (first 2 steps), didn't need to modify |
with works the solution from @pdoggi thanks! |
Manual Linking was the only described solution, that worked for me :) |
Manual Linking worked |
If you're coming from React version 0.60 and above, you should be referencing the package from GitHub instead of NPM. The author haven't released auto-linking support on NPM yet, even though it's already merged!? Try these steps after you unlink and uninstall the existing version of
You don't have to add any other post-install scripts, just run the app like usual and it should work fine. Make sure you undo any other fixes before doing this. |
You can still use 0.11.7 with RN 0.60
Fixed this for me with RN 0.60 and xcode 11.2.1 |
@raldred's solution worked right up until I upgraded to |
@lancesnider have you tried following the readme with 0.12? I think the maintainers have change the way it works, I haven't looked at 0.12 myself yet. |
@raldred I have, yes. |
May you give us some details about the steps done? I can't figure it out. |
@pedro
First of all tnx for this great module. I do have some questions remarks about it.
Config:
OS: OSX 10.13.2 (17C88)
XCODE: 9.2 (9C40b)
react-native:
0.51
react-native-config:
0.11.5
When I follow the instructions in the readme I get everything working for Android but not for iOS
GeneratedInfoPlistDotEnv.h
file not foundWhen I follow the instructions for iOS in the readme I get the first error, which is
GeneratedInfoPlistDotEnv.h file not found
.I've read the issue list and saw more people have this issue, see #83. I finally found a solution in issue 125 where they say the problem lies in the
react-native link
command that works differently betweenreact-native
0.49.3
and0.50.0
.By:
react-native
react-native link
react-native
I solved the first problem
ENVFILE=.env.prod react-native run-ios
not workingAccording to the docs I should be able to use
ENVFILE=.env.prod react-native run-ios
but because we hardcoded the commandecho ".env" > /tmp/envfile
I can't pass any other value. I then found a solution in issue #131 where I've added my solution.Question
Are both really issues, or am I doing something wrong. If they are I can create a PR for you to update the docs with these steps.
Like to hear from you
The text was updated successfully, but these errors were encountered: