I'm trying to use the Photos framework (PhotoKit) and I see in the FPC sources that all the appropriate units are there.
../fpcsrc/packages/cocoaint/src/Photos.pasThere is a proper Sources.pas as well, which in turn includes the all units I'd need for Photos.
The Makefile in "./fpcsrc/packages/cocoaint/src/" lists the unit as well:
${FPC} Photos.pas ${OPTS} ${SINGLE_UNIT}But after rebuilding FPC from scratch there are no compiled files (related to Photos) to be not found in.
~/fpcupdeluxe/fpc/units/aarch64-darwin/cocoaintFPC does not seem to be building this unit (and a few others).
Other more common Cocoa units are found there, like AVFoundation.
The Lazarus IDE cannot find the unit either when trying to do an autocomplete in the uses clause. However when typing the unit name manually, it DOES find "Photos" and even opens it just fine when right clicking the unit name in the uses clause ("find declaration of Photos").
I read that FPC and Lazarus maintain different config files, so they are not necessarily in sync (
Wiki).
But after spending an afternoon trying to figure this out, I'm at a complete loss.
For reference, I've reinstall FPC and Lazarus from scratch today, from trunk, with FPCUpDeluxe;
Lazarus 4.99 (rev main_4_99-1679-g9613485cf8)
FPC 3.3.1 aarch64-darwin-cocoa.
I've seen this problem before with previous versions of FPC and Lazarus.
What am I missing here?
Can anyone help or tell me where or how I can use the Photos.pas unit?