Skip to content

Unable to access environment variables in Info.plist on first go #449

Description

@mohsinulhaq

I am using RNConfig to set bundle id from env.
When I first run the app, I get the following error:

Required Info.plist Value Not Found A CFBundleIdentifier value in your Info.plist is required. Please confirm this value is present in /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-ezsuhwnwawmjstbafzmcrqcxqpaw/Build/Products/Debug-iphonesimulator/xxx.app/Info.plist

To get it working, I need to reopen Xcode and try again.

The error above is the same one when I manually delete ios/tmp.xcconfig file, and try to run the app. So it seems there is an issue with the build system trying to access the env vars before the RNConfig magic is done.

Any solution to this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions