Info.plist

This documentation https://developer.apple.com/library/content/documentation/General/Conceptual/iCloudDesignGuide/Chapters/DesigningForDocumentsIniCloud.html#//apple_ref/doc/uid/TP40012094-CH2-SW20

under the heading Enabling Document Storage in iCloud Drive tells me to add a key to the Info.plist file and shows an example which I've cut and pasted below:


<key>NSUbiquitousContainers</key>

<dict>

<key>iCloud.com.example.MyApp</key>

<dict>

<key>NSUbiquitousContainerIsDocumentScopePublic</key>

<true/>

<key>NSUbiquitousContainerSupportedFolderLevels</key>

<string>Any</string>

<key>NSUbiquitousContainerName</key>

<string>MyApp</string>

</dict>

</dict>


When I look at the Info.plist file in Xcode, it doesn't look like this. It looks like a list with controls that allow me to select from lists of options. How do I add the keys this documentation tells me to add?

The above example is from a raw plist - you can do that in Xcode, but only if needed and you understand how to edit without damaging/malforming the file and it's contents so that Xcode is kept happy. Select the plist in the navigator, then right-click and choose 'open as > source code' (vs. plist), if you must.


The view you see with rows, columns and the occasional drop-down, is the 'normal' view that caters to typical edits.


In that example, assuming you know the key you want to add*, use the + below, add a new row, then select the leftmost field and start typing the name - Xcode will attempt to auto-fill based on your lead (you don't have to use only known keys/strings, so you are free to create custom when they apply). If you find the key you want, commit, then move to the column on the right to indicate it's value.


*note that sometimes a native key you're looking for has been updated and goes by a different name or is new and not listed - be ready to adapt.

Info.plist
 
 
Q