-
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
Can't Find GeneratedDotEnv.m Upon Build #125
Comments
+1 |
Did you add |
@viniciusvgv, @HADB, @szharifs : How did you manage to rectify this error. If you can please elaborate on the steps you used. |
@AmandeepSingh06 I had to install |
Has anyone found any solution? I'm stuck with this for 2 days now... |
Ok, so after 3 days working on it, I found a workaround
and run from your project root: My understanding is since react-native 0.50, CocoaPods projects are automatically linked and for some reason (maybe related to this issue) the ruby script was not executed |
@gaultierq it doesn't work for me.
|
try to add logs in the podfile script and ruby script and see what is going wrong |
@DLevai94 Here's what I ended up with:
There's probably a more elegant way to do it, but it worked for me. |
Thanks for your help. Now, I decided to downgrade RN to 0.49.5. On this version, it works without any hacks. :) I guess the problem is the new mechanics of |
@DLevai94 You can downgrade to RN 0.49 and link and then upgrade again to 0.51 🥇
- #pod 'react-native-config', :path => '../node_modules/react-native-config'
- "react-native": "^0.51.0",
+ "react-native": "=0.49.3",
rm -rf node_modules
yarn install
./node_modules/.bin/react-native link react-native-config
- "react-native": "=0.49.3",
+ "react-native": "^0.51.0",
rm -rf node_modules
yarn install This is very much a work around waiting for an official fix. But it is better then staying on 0.49. |
If you use |
@DLevai94 @mikelovesrobots I had to set Info.plist prefix preprocessor file to But other than that adjustment, npm install + react-native link react-native-config + pod install + Info.plist adjustment works out. |
There seem to be many different ways around this, for us the solution was:
This basically removed Versions:
|
I fixed this by changing the Info.plist prefix preprocessor file to |
@breadadams you saved my days. Thanks a lot bro. |
Using |
Add this script to scheme pre-actions:
Maybe someone knows a way to automatically put it into the scheme |
ios integration is supposed to be fixed by this pr: #349 no need to add any custom lines to prebuild step (except for those defined in readme) or Podfile |
I've updated my project to 0.60 rn version and get the same issue. In 0.60 cocoapods integration and autolinking from the box, but it doesn't work. I've tried manual linking and it was unsuccessful. As I understood, building using cocoapods don't run |
@Boris-Vladimirovich I am struggling to get 0.58 working and the above fixes aren't working for me. |
@maxkomarychev Checked on master, this (unfortunately) doesn't fix the problem. |
For other people, this package works great if you don't need to expose the ENV vars in iOS land. Simply don't add the package to the project or include the cocoa-pods |
Same issue here, testing on |
I can finally make it works with |
Fixed @mcanobbio's link: |
@mcanobbio are you using multiple environments? |
so does this project support auto-linking for RN > 0.60? |
same question with RN > 0.60 |
Facing a build error with the following error message on X-Code:
Lexical or Preprocessor Issue -> /MyApp/node_modules/react-native-config/ios/ReactNativeConfig/ReactNativeConfig.m:2:10: 'GeneratedDotEnv.m' file not found.
Ran react-native run-ios too and facing a similar error and I've also done the library linking process.
In the includes selection of X-Code's jump-bar navigation helper, the file is there but somehow I'm facing this import issue. I've attached the file here.
Not sure what I'm doing wrong. Would appreciate your help on this.
Thank you in advance.
The text was updated successfully, but these errors were encountered: