Anyway going further in experiment. Maybe helpful for other using FPCDeluxe needing to recompile FPC source:
1)
In finder I select "Get info" for "packages folder" and I see "staff" user does not have read + write ...
I decide to fix this for the entire "LazarusCocoa64" directory because it is a problem *ALLOVER* that "staff" is write protected
And I recall from earlier ls -l that "staff" was mentioned (I am not into Mac intrincsic)
I do this like
https://support.apple.com/guide/mac-help/change-permissions-for-files-folders-or-disks-mchlp1203/mac"Apply permissions to all items in a folder or a disk"
2)
I go into
/Users/%name%/LazarusCocoa64/fpcsrc/packages/cocoaint/units/x86_64-darwin
and make sure all is deleted so *new* files can be generated
3)
make clean all FPC=/Users/%name%/LazarusCocoa64/fpc/lib/fpc/3.3.1 OS_TARGET=darwin CPU_TARGET=x86_64 OPT="-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/"
(now gives drastically fewer permission errors, but they are not all solved oddly. But the errors not related to the files in "cocoaint")
4)
we check and this folder is empty
/Users/%name%/LazarusCocoa64/fpcsrc/packages/cocoaint/units/x86_64-darwin
5)
For testing everything is getting compiled correctly inside *ifdef*, we introduce *temporary* compile time bugs in:
/Users/%name%/LazarusCocoa64/fpcsrc/packages/cocoaint/src/webkit/WKNavigationDelegate.pas
followed by running
sudo make install FPC=$PWD/compiler/ppcx64 OS_TARGET=darwin CPU_TARGET=x86_64
so we are 100% sure everything gets compiled correctly.
6)
When ready having tested evertyhing above carefully we run final:
sudo make install FPC=$PWD/compiler/ppcx64 OS_TARGET=darwin CPU_TARGET=x86_64
7)
we check and see new files have been successfully created in
/Users/%name%/LazarusCocoa64/fpcsrc/packages/cocoaint/units/x86_64-darwin
Thus we can completely entirely positively state new compiled units have been created...
That
Lazarus somehow still broken / out of sync I do not understand how can be.
Inside Lazarus I can now navigate to *WKNavigationDelegateProtocol* declaration (CTRL + mouse click on the identifier in my own source) and I am taken to WKNavigationDelegate.inc
But I still get compiler error "Identifier not found "WKNavigationDelegateProtocol"
I have tried in Lazarus "Clean and Build all" + manually delete "Lib" folders anywhere related to my own code.
Conclusion sofar: Lazarus broken deep within.
Probability of being correct 10%
Please if anyone has ideas let me know.