Hi everyone. I have a project with android and ios...
# multiplatform
f
Hi everyone. I have a project with android and ios targets. In my build.gradle.kts I have an env variable called in this way :
System.getenv("REPOSITORIES_LOCAL_PATH") ?: error("Env variable not found")
. The project runs successfully with iOS using the multiplatform plugin but I can't run it directly from XCODE because isn't found the env variables. Are there some way to export the env variable via
Pods
. I also tryed to add the exports in Build Phase but with no success. Any idea???
m
Fo iOS i use
xcconfig
file, and I added this into gitignore, so we never commit it. In CI we add it as a secret file and developers has in their local machine
another option is everyone can add
REPOSITORIES_LOCAL_PATH
in their
.bashrc
file (or the default terminal app)