環境
OS: macOS 10.12.4
Swift: 3.1
Swift: 3.1
swiftでメディアライブラリを利用するアプリを実行すると以下のエラーが発生。
This app has crashed because it attempted to access privacy-sensitive data without a usage description.The app's Info.plist must contain an NSAppleMusicUsageDescription key with a string value explaining to the user how the app uses this data.
これは「info.plist」にメディアライブラリを利用する記述がされてないことにより発生しているようです。
このエラーを解決すべく「info.plist」にメディアライブラリを利用する方法を以下に説明します。
まずプロジェクトナビゲーターから「info.plist」を選択して「Infomation Property List」の右にある「+」をクリックします。

次に表示されたウィンドウ内の「Privacy - Media Library Usage Description」を選択します。

最後にValueにメディアライブラリを利用する説明を入力して完了です。

以上でエラーが発生しなくなるはずです。