From 45c4485f6b11ca25f2ad47e2db568abbbc3562b3 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Sat, 7 Jun 2025 13:30:02 -0700 Subject: [PATCH] Fix Podfile template --- {{cookiecutter.out_dir}}/ios/Podfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.out_dir}}/ios/Podfile b/{{cookiecutter.out_dir}}/ios/Podfile index 62a2f65..8547703 100644 --- a/{{cookiecutter.out_dir}}/ios/Podfile +++ b/{{cookiecutter.out_dir}}/ios/Podfile @@ -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