Skip to content

How to select .env.staging in XCode? #836

@JuMalIO

Description

@JuMalIO

In github readme I see that you can create pre-build script which copies .env.staging -> .env and build. It works. But I dont want .env file change everytime I build with different configuration. How do I use .env.staging instead of copying?

I have tried export ENVFILE=.env.staging in Bundle react native code and images in Build phases, but that does not seem to work. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions