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
Post a Comment