Home IOS Development ios – Learn plist worth in Appfile

ios – Learn plist worth in Appfile

0
ios – Learn plist worth in Appfile

[ad_1]

I need to change the chosen scheme primarily based on the worth of plist entry

Contents of Appfile

def get_live_scheme_name()
  setting = get_info_plist_value(path: 'path-to-info.plist', key: 'settings')
  
  return setting == "worth" ? "schemeA" : "schemeB"
finish

for_lane :build_ad_hoc do
  apple_id "..."

  knowledge[:configuration] = "Launch"
  knowledge[:export_method] = "ad-hoc"
  knowledge[:scheme] = get_scheme_name()
finish

Can I run arbitrary code within the Appfile ?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here