ionic-team/trapeze

[question] ios -> How i can delete a attribute from info.plist

Timbuktu1982 opened this issue · 3 comments

Hi there,

how i can remove an attribute from info.plist completely?

I want to remove "UISupportedInterfaceOrientations~ipad". When i use following command, the attribute contains .

                    - replace: true
                      entries:
                          - UISupportedInterfaceOrientations~ipad:

result:

		<key>UISupportedInterfaceOrientations~ipad</key>
	        <null/>

thx

What if you try an empty array:

- replace: true
  entries: []

Great. Thank you very much for the quick support!

I can't get this to work. Where exactly to I put those lines? I've tried different combinations but just can't figure out how to remove the attribute. In my case, I want to remove "UILaunchStoryboardName"

It feels like the code below might be the closes to what you meant, but it still doesn't work.

platforms:
  ios:
    targets:
      App:
        plist:
          - UILaunchStoryboardName:
            - replace: true
              entries: []