I'm converting over a legacy Core-Audio application to run sandboxed. This app
normally access files in the iTunes library in order to analyze them for BPM
information. Enabling the music.read-only entitlement does not work.
com.apple.security.assets.music.read-only
I get the following error:
deny file-read-data /Users/smj/Music/iTunes/iTunes Music/Depeche
Mode/Violator/01 World In My Eyes.mp3
I have been able to overcome this problem by adding the temporary exception to
perform relative reads from the users home directory using this path:
/Music/iTunes/iTunes Music/
My issue with this solution is that it is temporary! Can anyone shed light on
why the music entitlement is not working? As I indicated I'm using Core Audio
APIs. Do I need to switch to AVAsset or something like this to make this work?
Some other little detail I'm leaving out?
One other thought that just occurred to me is that I'm using the paths I get
from iTunes to try and access these files. These paths are absolute from the
root directory and look something like this:
Unable to open track
file://localhost/Users/michael/Music/iTunes/iTunes%20Music/Depeche%20Mode/Violator/01%20World%20In%20My%20Eyes.mp3
(File not found)
Do I need to specify some sort of relative substitute when using
*.music.read-only?
-Michael
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]