Rashmin Kaur
Rashmin Kaur

Reputation: 81

GeneratedInfoPlistDotEnv.h file is not found

I have a issue, regarding Xcode, in react-native permission file in which GeneratedInfoPlistDotEnv.h file is not found.

How to fix this?

Already changed Info.plist Preprocessor Prefix File to

${CONFIGURATION_BUILD_DIR}/GeneratedInfoPlistDotEnv.h 

but it did not solve.

issue is:

:1:10: fatal error: '/Users/DAMAGE/Library/Developer/Xcode/DerivedData/EmployWise-fzbhiywasjfdjnfqjsfnxjbhahzs/Build/Products/GeneratedInfoPlistDotEnv.h' file not found

Upvotes: 8

Views: 5258

Answers (4)

stonedauwg
stonedauwg

Reputation: 1407

Was getting this from react-native-config cocoapod. But its been fixed in v1.4.11. Was due to the older version not writing output script variables, which XCode 14 requires

Upvotes: 3

Lucas C. Feijo
Lucas C. Feijo

Reputation: 1131

In my case, I was trying to add a new target for rn-extensions-share and forgot to add all necessary libraries for that new target.

Correct libs to link with in shar extension target

Upvotes: 1

Martin Lockett
Martin Lockett

Reputation: 2599

I had this problem, my solution was to change the Xcode build system from "Legacy Build System" to "New Build System" in the Workspace Settings under the File menu

Upvotes: 1

Shweta
Shweta

Reputation: 1247

This issue comes when react native is not able to link to the configuration file like .env file created in your react native environment. If you have used any react native config framework like react-native-config. then make sure this framework is linked for your iOS environment as shown below

    react-native link react-native-config

If you are using react-native version >= 0.60 then follow the below steps after linking is done. Go to ios folder and run pod install.

Next do the following: 1. Remove Derived Data from Xcode 2. Clean Build Folder 3. Build the project again

Upvotes: 1

Related Questions