Skip to content

Adding Audio to UIBackgroundModes

Andrew Madsen edited this page Apr 7, 2015 · 1 revision

On iOS, MIKMIDI uses some CoreMIDI functions that require that your app specifies the audio key in its UIBackgroudModes. This guide explains how to configure this in your app. This guide was written for Xcode 6.2 on April 7, 2015. The procedure may have changed somewhat in later versions of Xcode.

  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
Clone this wiki locally