10 Replies Latest reply: Aug 6, 2014 1:46 AM by laurent184
neimannj Level 1 Level 1

Hello everybody!

 

My iPhoto fails to create an AlbumData.xml for iTunes to sync photos with my iPhone, creates ApertureData.xml instead.

 

I use iPhoto 9.4.1 with latest updates installed as well as an uptodate iTunes. I never had Aperture installed. IPhoto was updated several times from the first version on Intel architecture.

 

Everything started with old events and Albums showing up in iTunes. New events and albums did not show up. I already did repair as well as rebuild the iPhoto database. After that I got deeper into the library folder I discovered that iPhoto creates ApertureData.xml instead of AlbumData.xml. But iPhoto expects AlbumData.xml. Placing an old AlbumData.xml into the folder makes iTunes show some old folders and albums. But as they do not exist, all are empty. New events are missing.

 

I followed some advises and deleted the iApps plist as well as all Caches under ~/Library/

 

I created a new iPhoto library with another user and found only one difference in the plist: com.apple.iPhoto.plist shows a different path (expected) but also the ApertureData.xml where the newly setup plist shows AlbumData.xml. When manually changed it is every time reset to ApertureData.xml by iPhoto on closing.

 

I also discovered the entry TouchedByAperture set to TRUE in one plist file contained in the database folder of my iPhoto library.

 

Even closing iPhoto and then setting this to FALSE and changing to AlbumData.xml is reset by iPhoto (or some other background process?) when iPhoto ist started again.

 

I also deleted every event, slideshow, keyword with any special character in it before finding out about ApertureData.xml.

 

Which switch in which plist did I overlook?

 

How to solve this?

 

Where does this problem come from?

 

Anybody else affected?


iPhoto '11, Mac OS X (10.7.5), iMac 20' late 2007
Solved by neimannj on Oct 27, 2012 11:15 AM Solved

I finally found the solution:

 

Edited Library.apdb from Database/abdb/-folder with SQLite Database Browser.

 

Opened "RKAdminData" and set "isIPhotoLibrary" to 1 (was not set).

 

Bildschirmfoto 2012-10-27 um 20.07.41.png

 

Opening and closing iPhoto now outputs AlbumData.xml again.

 

But the question remains: Why did one of the last updates change the default setting without Aperture installed?

 

Seems like apple messed things up by making Aperture and iPhoto using the same library.

  • neimannj Level 1 Level 1

    For just a second I thought iTunes might perhaps be the problem. But then I found com.apple.iApps.plist which was newly generated after deletion:

     

    com.apple.iApps.plist.png

     

    Looks like it is still expecting AlbumData.xml, iPhoto still producing ApertureData.xml.

     

    By the way there are no Plug-Ins or iPhoto Support tools installed here...

  • neimannj Level 1 Level 1

    When a new iPhoto-Library is created iPhoto produces AlbumData.xml. As I left every reference outside the iPhoto-Library untouched the information has to reside somewhere inside of it.

     

    I tried to overwrite all plist files in there with the ones from the newly created iPhoto-Lib but they seem to be re-written everytime when iPhoto is closed.

     

    Where is the information stored?

     

    I will now have a look at the database files (with apdb-ending).

  • Old Toad Level 10 Level 10
    expertise.photosformac
    Photos for Mac

    Try the following:  make a temporary, backup copy if you don't already have a backup copy of the library (Control-click on the library and select Duplicate from the contextual menu) and try the following: make a temporary, backup copy of your library if you don't already have one (Control-click on the library and select Duplicate from the contextual menu) and  apply the two below:

     

     

    Fix

     

    Using iPhoto Library Manager  to Rebuild Your iPhoto Library

     

      1. Download iPhoto Library Manager and launch.
      2. Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
      3. Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
      4. In the next  window name the new library and select the location you want it to be placed.
      5. Click on the Create button.

     

    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

     

    OT

  • neimannj Level 1 Level 1

    I finally found the solution:

     

    Edited Library.apdb from Database/abdb/-folder with SQLite Database Browser.

     

    Opened "RKAdminData" and set "isIPhotoLibrary" to 1 (was not set).

     

    Bildschirmfoto 2012-10-27 um 20.07.41.png

     

    Opening and closing iPhoto now outputs AlbumData.xml again.

     

    But the question remains: Why did one of the last updates change the default setting without Aperture installed?

     

    Seems like apple messed things up by making Aperture and iPhoto using the same library.

  • laurent184 Level 1 Level 1

    Hi, I see this is a really old post but I am having this issue on iPhoto 9.5.1.

     

    I've tried to follow your SQL instruction but I am unable to get into the Library.apdb from Database/abdb/-folder through SQLlite database browser as I can't get into the iPhoto library package.

     

    Whats the exact file path to get to this?

     

    Thanks for your help!

  • Old Toad Level 10 Level 10
    expertise.photosformac
    Photos for Mac

    That file is located in the iPhoto Library/Database/apdb folder as shown in this screenshot.

     

    Finder001.jpg

     

    To open the library package Control (right) - click on it and select "Show Package Contents" from the contextual menu.

  • laurent184 Level 1 Level 1

    thanks. I have no problem getting to the package contents in the finder, but I'm unable to do so in SQL browser when trying to 'open database'

  • léonie Level 10 Level 10
    expertise.photosformac
    Photos for Mac

    Have you tried to open the folder with the Library.apdb in the Finder and to drag the file into the file chooser  "Open" panel?

    For many applications this will work: I don't have SQL Browser installed, but Xcode will let me select the file this way (even if it cannot edit it).

    Screen Shot 2014-08-05 at 17.45.20GMT+2.png

  • Old Toad Level 10 Level 10
    expertise.photosformac
    Photos for Mac

    Open the package, find the file and drag it onto the SQL browser in the Dock. That should open it.  Be sure to make a copy of the original file just in case the edit goes south.

     

    Try moving that file out of the library package, launching iPhoto with the Option + Command keys held down and in the First Aid window select Option #4, Rebuild Database.  See if that will reset that attribute to 1.  I just ran a test and the database file was rebuilt from scratch  with the value set to 1:

    Screen Shot 2014-08-05 at 8.50.23 AM.jpg

  • laurent184 Level 1 Level 1

    A very big thank you!

     

    Finally iPhoto created AlbumData.xml and now my Photos can all be synced with Dropbox using the Import from iPhoto feature!