Slide 48
Slide 48 text
# FeatureFlags = HONYA,MORAKE と入ってくるので
# それぞれプレフィックスに FEATURE_FLAG_ を付与して渡す。
activate_feature_flags =
(options[:activate_feature_flags] || '').split(",")
xcodebuild_args =
activate_feature_flags
.map { |k| "-D FEATURE_FLAG_#{k.shellescape}" }.join(' ')
build_app(
workspace: "MyApp.xcworkspace",
scheme: "MyApp",
export_options: {
xcargs: xcodebuild_args.length > 0
? "OTHER_SWIFT_FLAGS='$(inherited) #{xcodebuild_args}'"
: ""
)
'BTUMBOFͷઃఆ
w ҾͰ'FBUVSF'MBH༻ͷίϯύ
ΠϧϑϥάΛड͚औΔ
w ଞͷҾͱ۠ผͰ͖ΔΑ͏ʹɺ
ϓϨϑΟοΫεΛ͚Δͷ
ࣗલ࣮Ͱͷ
'BTU
fi
MF
$ fastlane build_my_app activate_feature_flags:HONYA,MORAKE
> FEATURE_FLAG_HONYAとFEATURE_FLAG_MORAKEがtrueになる