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

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

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

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