ios – How you can use person outlined construct settings in script section?

[ad_1]

In a .pubspec file of a flutter plugin for iOS i wish to execute the script code_gen.sh:

 s.script_phases = [
    { :name => 'code generation',
      :script => '${PODS_TARGET_SRCROOT}/code_gen.sh',
      :execution_position => :before_compile
    }
  ]  

This script must entry some person outlined Xcode construct settings which I set by way of
pod_target_xcconfig. For instance:

 s.pod_target_xcconfig = {
    'CODE_GEN_TARGET_ARCH[arch=arm64*]' => 'aarch64',
  }

I get the error CODE_GEN_TARGET_ARCH: unbound variable whereas executing the script.

I additionally tried user_target_xcconfig however its the identical error. Different Xcode setting variables are accessible.
It appears that evidently my variables outlined within the pod spec file usually are not getting exported to the shells setting. How can I obtain this?

[ad_2]

Leave a Reply