How to use Swift Flags inside a Run Script Build Phase in Xcode? -


i added "-d myownflag" other swift flags in build settings of xcode. now, in run script found in build phases, want check existence of flag "myownflag" , execute (e.g. change info.plist setting value) if exists.

is possible? if yes, best way this?

you can check available environment variables running printenv within runscript phase.

the other swift flags can printed running:

echo $other_swift_flags 

from within runscript phase


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -