Fix Podfile template

This commit is contained in:
Feodor Fitsner 2025-06-07 13:30:02 -07:00
parent 14abb8dac9
commit 45c4485f6b
1 changed files with 5 additions and 2 deletions

View File

@ -72,12 +72,15 @@ post_install do |installer|
'$(inherited)',
{%- for macro, plist_keys in permission_mapping.items() %}
{%- set ns = namespace(enabled=False) %}
{%- for key in plist_keys %}
{%- if key in cookiecutter.options.info_plist %}
'{{ macro }}=1',
{%- break %}
{%- set ns.enabled = True %}
{%- endif %}
{%- endfor %}
{%- if ns.enabled %}
'{{ macro }}=1',
{%- endif %}
{%- endfor %}
]
end