New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to pass in Xcode build settings as env variables to "flutter build ios-framework" FLUTTER_XCODE_ #49378
Comments
It does already pass the environment variables to invocations of |
it kinda works. But you can't pass the arguments which start with minus. I.e. you can pass -derivedDataPath via FLUTTER_XCODE. Because FLUTTER_XCODE_-derivedDataPath variable cannot be created. |
You can probably play with build settings like |
Wouldn't it be simplier to have one environment variable (for example FLUTTER_XCODE) which will contain the string, which is just concatenated to the command line? So that any sophisticated combination of compilation flags could be added. |
Hi @jmagman, Is FLUTTER_XCODE prefix support available on stable channel ? |
@bhavyalatha26
|
Thanks for the info @jmagman. I just need one more info as of how to pass these variables. For instance I added google maps package to my app and I am trying to pass the google maps key as XCODE env var to the AppDelegat.swift class as below
Flutter : stable 1.17.5 I tried it in below 3 ways. But none of them worked. 1.
2.
3.
Can you help me the right way of doing this |
@bhavyalatha26 |
Ok thank you @jmagman |
This was done for all other commands via env variables with the
FLUTTER_XCODE_
prefix (likeFLUTTER_XCODE_CODE_SIGN_STYLE
) with #43553 but was missed when creatingbuild ios-framework
command.Example that should work, but doesn't:
The text was updated successfully, but these errors were encountered: