Access macOS Photos library on Mojave

Hi,


I have an metadata editor / video player for the users videos. For access I used the Photos parser in MLMediaLibrary - which seems to be disabled in Mojave. Is there any alternative access the assets of the Photos library?


Thanks,

Thomas

Accepted Reply

I found the answer for your problem here: https://github.com/abentele/PhotosExporter/issues/1#issuecomment-431693078


In macOS Mojave the access to the Photos Library is more restricted. You need to add the 'NSPhotoLibraryUsageDescription' entry to your Info.plist in order to make it accessible via MLMediaLibrary.


The user will then be asked if he wants to grant the privilege to access the Photos Library when starting the application for the first time (this decision can be changed in the System preferences/Security/Privacy panel of Mojave).


Best regards,

Yakuhzi

Replies

I found the answer for your problem here: https://github.com/abentele/PhotosExporter/issues/1#issuecomment-431693078


In macOS Mojave the access to the Photos Library is more restricted. You need to add the 'NSPhotoLibraryUsageDescription' entry to your Info.plist in order to make it accessible via MLMediaLibrary.


The user will then be asked if he wants to grant the privilege to access the Photos Library when starting the application for the first time (this decision can be changed in the System preferences/Security/Privacy panel of Mojave).


Best regards,

Yakuhzi