Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
- Subject: Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
- From: Manfred Schwind <email@hidden>
- Date: Thu, 25 Aug 2011 23:18:48 +0200
> one of my customers is reporting that my app does not find the "iTunes Music Library.xml" file. Its there and its filled with data. His iTunes runs fine. He send me the file and to my eyes it looks fine. The way i load it is with:
>
> NSDictionary * xmldict = [NSDictionary dictionaryWithContentsOfFile:libraryXML];
>
> This returns nil for this file. The path is correct. For every other file I encountered this worked fine. Is there a way to find out whats causing this error? Or is there a known problem with loading this file that way?
Maybe the file is corrupt. In most cases it can be solved by deleting the XML file and then making a slight change in iTunes (e.g. rename a song). The file is then written again soon and should be fine.
Hope that helps,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
Lullaby - wicked awesome shutdown timer
Secrets - secure information storage
LittleSecrets - the encrypted notepad
Watchdog - baffle the curious
Sahara - sand in your pocket
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden