• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
      • From: Jens Alfke <email@hidden>
References: 
 >"iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile: (From: David Dengg <email@hidden>)

  • Prev by Date: Re: Representation of strings with special chars
  • Next by Date: Re: Sharing a persistent store between iOS and Mac
  • Previous by thread: Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
  • Next by thread: Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
  • Index(es):
    • Date
    • Thread