Here's what my entitlements file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.iCal</key>
<array>
<string>com.apple.iCal.read-write</string>
</array>
<key>com.apple.systemevents</key>
<array>
<string>com.apple.systemevents.window.position</string>
</array>
<key>com.apple.iTunes</key>
<array>
<string>com.apple.iTunes.device</string>
<string>com.apple.iTunes.library.playback</string>
<string>com.apple.iTunes.user-interface</string>
<string>com.apple.iTunes.playback</string>
</array>
</dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.apple.WeatherKitService</string>
</array>
<key>com.apple.security.device.microphone</key>
<true/>
<key>com.apple.security.personal-information.addressbook</key>
<true/>
<key>com.apple.security.personal-information.calendars</key>
<true/>
</dict>
</plist>However, my app still gets an error saying that "A privilege violation occured" for iTunes. Why might this be?