how do I edit plist file using the xcode?

Hello,


I need to add "Audio to UIBackgroundModes" in the info,plist


In order to do that I need to fulfill all the steps below but my buck stops at step 1 - which is - open your app's Info.plist in Xcode.

I need help only on that step. How do I open my app's Info.plist in Xcode. Is that a physical file like config.xml that I can use a texteditor to edit?


I'm running xCode 7.3


source: https://github.com/mixedinkey-opensource/MIKMIDI/wiki/Adding-Audio-to-UIBackgroundModes

  1. First, open your app's Info.plist in Xcode.
  2. Check for a row called "Required Background Modes", or "UIBackgroundModes". If this already exists, skip to step 5.
  3. Right-click and choose "Add Row"
  4. For the key, choose "Required Background Modes", or type "UIBackgroundModes" (without the quotes).
  5. Expand the row, and add an item whose value is "audio" (without the quotes). Alternatively, you can use the dropdown to select "App plays audio or streams audio/video using AirPlay".
  6. Save Info.plist

Select it on the left - you should then see rows on the right where you can edit or add more, etc.


Don't edit it in an external text editor...it's too easy to break the format required for use in your project.

While you don't want to mess up the format, sometimes you just have to edit the raw file.

For example:
https://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9

✅ I opened it with VS Code and that worked for me.

how do I edit plist file using the xcode?

Right-click Info.plist > Open As > Source Code
how do I edit plist file using the xcode?
 
 
Q