简体   繁体   中英

Is it possible, good practice, to add comments to Info.Plist, or entitlements in iOS?

I'm working with Xamarin and Xcode, and am looking for any documentation that says it's possible to add comments to either of these files, or advice that I shouldn't even attempt it. (eg b/c it breaks some version of ios)

Is it possible (or wise) to add comments into these files?

It is certainly possible to add comments using the standard XML comments syntax, for example:

<!--We need to define aps-environment because... -->
<key>aps-environment</key>
<string>development</string>

And of course it is good practice to add explanatory comments to any non-obvious code, just as with every source code file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM