xcode - Change user-defined variable from fastlane -


i have user-defined variable in xcode project - my_variable:
enter image description here linked my_variable in .plist file:
enter image description here , use in code:
nsstring *myvariable = [[nsbundle mainbundle] objectforinfodictionarykey:@"my_variable"];

in fastfile have appstore lane and, in case, change value of my_variable.

i'm using:
env["my_variable"] = "appstorevalue"
doesn't work.

after bit of research found solution this.
i'm using xcargs in gym action, like:

gym(   scheme: "myscheme",   configuration: "release",   use_legacy_build_api: 1,   xcargs: "my_variable=appstorevalue" ) 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -