Home > OS >  Add LSSupportsOpeningDocumentsInPlace boolean key to Info.plist XML
Add LSSupportsOpeningDocumentsInPlace boolean key to Info.plist XML

Time:10-12

I need to add LSSupportsOpeningDocumentsInPlace to Info.plist in order to make my Xamarin.IOS app's downloaded files appear in the Files apps.

In the Visual Studio Info.plist editor, there doesn't seem to be a place to add keys, so I'm editing the file directly, and I'm not sure of the format. If I create a key with type of <boolean> then I get an error when opening the file again in VS.

This is my attempt that doesn't cause an error, but it doesn't seem to have any affect when running the app in iPhoneSimulator:

<key>LSSupportsOpeningDocumentsInPlace</key>
<string>YES</string>

Is the correct way to add a boolean key?

CodePudding user response:

There are two ways to add key-value in info.plist .

1.Open with ,add the key-value at the end of the root dict element .

 <key>LSSupportsOpeningDocumentsInPlace</key>
 <true/>

enter image description here


2.Open with enter image description here , click the button enter image description here at the end ,and add a Boolean key .

enter image description here

  • Related