Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Timbuktu1982 opened this issue Jan 25, 2023 · 3 comments
Closed

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

Timbuktu1982 opened this issue Jan 25, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Timbuktu1982
Copy link

Timbuktu1982 commented Jan 25, 2023

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

@Timbuktu1982 Timbuktu1982 changed the title ios -> How i can delete a attribute from info.plist [question] ios -> How i can delete a attribute from info.plist Jan 25, 2023
@mlynch mlynch added the enhancement New feature or request label Jan 26, 2023
@mlynch
Copy link
Contributor

mlynch commented Jan 26, 2023

What if you try an empty array:

- replace: true
  entries: []

@Timbuktu1982
Copy link
Author

Great. Thank you very much for the quick support!

@matfantinel
Copy link

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: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants